CAnnotationManage.h 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. //
  2. // CAnnotationManage.h
  3. // ComPDFKit_Tools
  4. //
  5. // Copyright © 2014-2024 PDF Technologies, Inc. All Rights Reserved.
  6. //
  7. // THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
  8. // AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE ComPDFKit LICENSE AGREEMENT.
  9. // UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
  10. // This notice may not be removed from this file.
  11. //
  12. #import <UIKit/UIKit.h>
  13. #if __has_include(<ComPDFKit_Tools/ComPDFKit_Tools.h>)
  14. #import <ComPDFKit_Tools/CPDFListView.h>
  15. #else
  16. #import "CPDFListView.h"
  17. #endif
  18. NS_ASSUME_NONNULL_BEGIN
  19. @class CPDFListView;
  20. @class CAnnotStyle;
  21. @class CPDFAnnotation;
  22. @interface CAnnotationManage : NSObject
  23. @property (nonatomic, readonly) CPDFListView *pdfListView;
  24. @property (nonatomic, readonly) CAnnotStyle *annotStyle;
  25. - (instancetype)initWithPDFView:(CPDFListView *)pdfListView;
  26. - (void)setAnnotStyleFromAnnotations:(NSArray<CPDFAnnotation *> *)annotations;
  27. - (void)setAnnotStyleFromMode:(CPDFViewAnnotationMode)annotationMode;
  28. - (void)refreshPageWithAnnotations:(NSArray *)annotations;
  29. /**
  30. * Get the default color of highlight annotations.
  31. */
  32. + (UIColor *)highlightAnnotationColor;
  33. /**
  34. * Get the default color of underline annotations.
  35. */
  36. + (UIColor *)underlineAnnotationColor;
  37. /**
  38. * Get the default color of strikeout annotations.
  39. */
  40. + (UIColor *)strikeoutAnnotationColor;
  41. /**
  42. * Get the default color of squiggly annotations.
  43. */
  44. + (UIColor *)squigglyAnnotationColor;
  45. /**
  46. * Get the default color of freehand annotations.
  47. */
  48. + (UIColor *)freehandAnnotationColor;
  49. @end
  50. NS_ASSUME_NONNULL_END