123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235 |
- //
- // CPDFKitConfig.h
- // ComPDFKit
- //
- // Copyright © 2014-2022 PDF Technologies, Inc. All Rights Reserved.
- //
- // THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
- // AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE ComPDFKit LICENSE AGREEMENT.
- // UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
- // This notice may not be removed from this file.
- //
- #import <Foundation/Foundation.h>
- #import <ComPDFKit/CPDFKitPlatform.h>
- #import <ComPDFKit/CPDFView.h>
- #define CPDFKitShareConfig [CPDFKitConfig sharedInstance]
- @interface CPDFKitConfig : NSObject
- /**
- * The shared CPDFKitConfig configuration instance.
- */
- + (instancetype)sharedInstance;
- /**
- * Get the cache size.
- */
- - (unsigned long long)cacheSize;
- /**
- * Clear the cache.
- */
- - (void)clearCache;
- /**
- * Get the default view mode of CPDFView.
- * View Mode : Horizontally, Vertically
- *
- * @see CPDFDisplayDirection
- */
- - (CPDFDisplayDirection)displayDirection;
- /**
- * Set the default view mode of CPDFView.
- *
- * @see CPDFDisplayDirection
- */
- - (void)setDisplayDirection:(CPDFDisplayDirection)displayDirection;
- /**
- * Get the default reading mode of CPDFView.
- * Reading Mode : Night, Soft, Green, Other
- *
- * @see CPDFDisplayMode
- */
- - (CPDFDisplayMode)displayMode;
- /**
- * Set the default reading mode of CPDFView.
- *
- * @see CPDFDisplayMode
- */
- - (void)setDisplayMode:(CPDFDisplayMode)displayMode;
- /**
- * Get a custom background color for the rendered mode of CPDFView.
- */
- - (CPDFKitPlatformColor *)displayModeCustomColor;
- /**
- * Set a custom background color for the rendered mode of CPDFView.
- */
- - (void)setDisplayModeCustomColor:(CPDFKitPlatformColor *)displayModeCustomColor;
- /**
- * Get whether to allow to highlight link field in the CPDFView.
- */
- - (BOOL)enableLinkFieldHighlight;
- /**
- * Set whether to allow to highlight link field in the CPDFView.
- */
- - (void)setEnableLinkFieldHighlight:(BOOL)enableLinkFieldHighlight;
- /**
- * Get whether to allow to highlight form field in the CPDFView.
- */
- - (BOOL)enableFormFieldHighlight;
- /**
- * Set whether to allow to highlight form field in the CPDFView.
- */
- - (void)setEnableFormFieldHighlight:(BOOL)enableFormFieldHighlight;
- /**
- * Get whether to allow annotation rotation.
- */
- - (BOOL)enableAnnotationNoRotate;
- /**
- * If set, do not rotate the annotation’s appearance to match the rotation of the page.
- * The upper-left corner of the annotation rectangle shall remain in a fixed location on the page, regardless of the page rotation.
- */
- - (void)setEnableAnnotationNoRotate:(BOOL)enableAnnotationNoRotate;
- /**
- * Get the default author of annotations.
- */
- - (NSString *)annotationAuthor;
- /**
- * Set the default author of annotations.
- */
- - (void)setAnnotationAuthor:(NSString *)annotationAuthor;
- /**
- * Get whether to allow to add freehand annotation by PencilKit.
- */
- - (BOOL)enableFreehandPencilKit;
- /**
- * Set whether to allow to add annotation by PencilKit.
- */
- - (void)setEnableFreehandPencilKit:(BOOL)enableFreehandPencilKit;
- /**
- * Get the default color of highlight annotations.
- */
- - (CPDFKitPlatformColor *)highlightAnnotationColor;
- /**
- * Set the default color of highlight annotations.
- */
- - (void)setHighlightAnnotationColor:(CPDFKitPlatformColor *)highlightAnnotationColor;
- /**
- * Get the default color of underline annotations.
- */
- - (CPDFKitPlatformColor *)underlineAnnotationColor;
- /**
- * Set the default color of underline annotations.
- */
- - (void)setUnderlineAnnotationColor:(CPDFKitPlatformColor *)underlineAnnotationColor;
- /**
- * Get the default color of strikeout annotations.
- */
- - (CPDFKitPlatformColor *)strikeoutAnnotationColor;
- /**
- * Set the default color of strikeout annotations.
- */
- - (void)setStrikeoutAnnotationColor:(CPDFKitPlatformColor *)strikeoutAnnotationColor;
- /**
- * Get the default color of squiggly annotations.
- */
- - (CPDFKitPlatformColor *)squigglyAnnotationColor;
- /**
- * Set the default color of squiggly annotations.
- */
- - (void)setSquigglyAnnotationColor:(CPDFKitPlatformColor *)squigglyAnnotationColor;
- /**
- * Get the default opacity of markup annotations.
- */
- - (CGFloat)markupAnnotationOpacity;
- /**
- * Set the default opacity of markup annotations.
- */
- - (void)setMarkupAnnotationOpacity:(CGFloat)markupAnnotationOpacity;
- /**
- * Get the default color of shape annotations.
- */
- - (CPDFKitPlatformColor *)shapeAnnotationColor;
- /**
- * Set the default color of shape annotations.
- */
- - (void)setShapeAnnotationColor:(CPDFKitPlatformColor *)shapeAnnotationColor;
- /**
- * Get the default interior color of shape annotations.
- */
- - (CPDFKitPlatformColor *)shapeAnnotationInteriorColor;
- /**
- * Set the default interior color of shape annotations.
- */
- - (void)setShapeAnnotationInteriorColor:(CPDFKitPlatformColor *)shapeAnnotationInteriorColor;
- /**
- * Get the default opacity of shape annotations.
- */
- - (CGFloat)shapeAnnotationOpacity;
- /**
- * Set the default opacity of shape annotations.
- */
- - (void)setShapeAnnotationOpacity:(CGFloat)shapeAnnotationOpacity;
- /**
- * Get the default interior opacity of shape annotations.
- */
- - (CGFloat)shapeAnnotationInteriorOpacity;
- /**
- * Set the default interior opacity of shape annotations.
- */
- - (void)setShapeAnnotationInteriorOpacity:(CGFloat)shapeAnnotationInteriorOpacity;
- /**
- * Get the default border width of shape annotations.
- */
- - (CGFloat)shapeAnnotationBorderWidth;
- /**
- * Set the default border width of shape annotations.
- */
- - (void)setShapeAnnotationBorderWidth:(CGFloat)shapeAnnotationBorderWidth;
- /**
- * Get the default color of freehand annotations.
- */
- - (CPDFKitPlatformColor *)freehandAnnotationColor;
- /**
- * Set the default color of freehand annotations.
- */
- - (void)setFreehandAnnotationColor:(CPDFKitPlatformColor *)freehandAnnotationColor;
- /**
- * Get the default opacity of freehand annotations.
- */
- - (CGFloat)freehandAnnotationOpacity;
- /**
- * Set the default opacity of freehand annotations.
- */
- - (void)setFreehandAnnotationOpacity:(CGFloat)freehandAnnotationOpacity;
- /**
- * Get the default border width of freehand annotations.
- */
- - (CGFloat)freehandAnnotationBorderWidth;
- /**
- * Set the default border width of freehand annotations.
- */
- - (void)setFreehandAnnotationBorderWidth:(CGFloat)freehandAnnotationBorderWidth;
- @end
|