CPDFView Class Reference
| Inherits from | UIView |
|---|---|
| Declared in | CPDFView.h |
Overview
This class is the main view of ComPDFKit you can instantiate a CPDFView that will host the contents of a CPDFDocument.
CPDFView may be the only class you need to deal with for adding PDF functionality to your application. It lets you display PDF data and allows users to select content, navigate through a document, set zoom level, and copy textual content to the Pasteboard. CPDFView also keeps track of page history. You can subclass CPDFView to create a custom PDF viewer.
Other Methods
document
Methods for associating a CPDFDocument with a CPDFView.
@property (nonatomic, strong) CPDFDocument *documentDiscussion
Methods for associating a CPDFDocument with a CPDFView.
Declared In
CPDFView.h
delegate
Returns the view’s delegate.
@property (nonatomic, weak) id<CPDFViewDelegate> delegateDiscussion
Returns the view’s delegate.
See Also
Declared In
CPDFView.h
displaysAsBook
Specifies whether the first page is to be presented as a cover and displayed by itself (for two-up modes).
@property (nonatomic, assign) BOOL displaysAsBookDiscussion
Specifies whether the first page is to be presented as a cover and displayed by itself (for two-up modes).
Declared In
CPDFView.h
displayDirection
The layout direction, either vertical or horizontal, for the given display mode.
@property (nonatomic, assign) CPDFDisplayDirection displayDirectionDiscussion
The layout direction, either vertical or horizontal, for the given display mode.
Defaults to vertical layout (CPDFDisplayDirectionVertical).
See Also
Declared In
CPDFView.h
displaysVerticalPaging
A Boolean value indicating whether pagination is displayed in vertical mode.
@property (nonatomic, assign) BOOL displaysVerticalPagingDiscussion
A Boolean value indicating whether pagination is displayed in vertical mode.
Defaults to NO.
Declared In
CPDFView.h
displaysPageBreaks
A Boolean value indicating whether the view is displaying page breaks.
@property (nonatomic, assign) BOOL displaysPageBreaksDiscussion
A Boolean value indicating whether the view is displaying page breaks.
Toggle displaying or not displaying page breaks (spacing) between pages. This spacing value is defined by the pageBreakMargins property. If displaysPageBreaks is NO, then pageBreakMargins will always return { 10.0, 10.0, 10.0, 10.0 }. Default is YES.
Declared In
CPDFView.h
pageBreakMargins
The spacing between pages as defined by the top, bottom, left, and right margins.
@property (nonatomic, assign) UIEdgeInsets pageBreakMarginsDiscussion
The spacing between pages as defined by the top, bottom, left, and right margins.
If displaysPageBreaks is enabled, you may customize the spacing between pages by defining margins for the top, bottom, left, and right of each page. Note that pageBreakMargins only allows positive values and will clamp any negative value to 0.0. By default, if displaysPageBreaks is enabled, pageBreakMargins is { 10.0, 10.0, 10.0, 10.0 } (with respect to top, left, bottom, right), otherwise it is { 0.0, 0.0, 0.0, 0.0 }.
Declared In
CPDFView.h
displayMode
The page render mode, either normal, night, soft, green or custom, for the given display mode.
@property (nonatomic, assign) CPDFDisplayMode displayModeDiscussion
The page render mode, either normal, night, soft, green or custom, for the given display mode.
See Also
Declared In
CPDFView.h
displayModeCustomColor
If displayMode is CPDFDisplayModeCustom, you may customize the color of the page rendering.
@property (nonatomic, strong) UIColor *displayModeCustomColorDiscussion
If displayMode is CPDFDisplayModeCustom, you may customize the color of the page rendering.
Declared In
CPDFView.h
displayCrop
A Boolean value indicating whether the view is displaying page crop.
@property (nonatomic, assign) BOOL displayCropDiscussion
A Boolean value indicating whether the view is displaying page crop.
Automatically crop out valid content from the page, If there is no content in the page, no cropping will be done.
Declared In
CPDFView.h
scaleFactor
The current scale factor for the view.
@property (nonatomic, assign) CGFloat scaleFactorDiscussion
The current scale factor for the view.
Method to get / set the current scaling on the displayed PDF document. Default is 1.0.
Declared In
CPDFView.h
– enterTextSelection:
Enter the text selection effect
- (void)enterTextSelection:(CPDFSelection *_Nonnull)selectionDiscussion
Enter the text selection effect
Declared In
CPDFView.h
– exitTextSelection
Exit the text selection effect
- (void)exitTextSelectionDiscussion
Exit the text selection effect
Declared In
CPDFView.h
– setEditAnnotationFreeTextBorderColor:
- (void)setEditAnnotationFreeTextBorderColor:(CPDFKitPlatformColor *_Nullable)color– setEditAnnotationFreeTextBorder:
- (void)setEditAnnotationFreeTextBorder:(CPDFBorder *_Nullable)border currentPageIndex
Returns the current page index.
@property (nonatomic, readonly) NSInteger currentPageIndexDiscussion
Returns the current page index.
Declared In
CPDFView.h
– goToPageIndex:animated:
Scrolls to the specified page.
- (void)goToPageIndex:(NSInteger)pageIndex animated:(BOOL)animatedDiscussion
Scrolls to the specified page.
Declared In
CPDFView.h
currentDestination
Returns a CPDFDestination object representing the current page and the current point in the view specified in page space.
@property (nonatomic, readonly) CPDFDestination *currentDestinationDiscussion
Returns a CPDFDestination object representing the current page and the current point in the view specified in page space.
Declared In
CPDFView.h
– goToDestination:animated:
Goes to the specified destination.
- (void)goToDestination:(CPDFDestination *)destination animated:(BOOL)animatedDiscussion
Goes to the specified destination.
Destinations include a page and a point on the page specified in page space.
Declared In
CPDFView.h
– goToRect:onPage:animated:
Goes to the specified rectangle on the specified page.
- (void)goToRect:(CGRect)rect onPage:(CPDFPage *)page animated:(BOOL)animatedDiscussion
Goes to the specified rectangle on the specified page.
This allows you to scroll the CPDFView object to a specific CPDFAnnotation or CPDFSelection object, because both of these objects have bounds methods that return an annotation or selection position in page space. Note that rect is specified in page-space coordinates. Page space is a coordinate system with the origin at the lower-left corner of the current page.
Declared In
CPDFView.h
– goToRect:onPage:offsetY:animated:
- (void)goToRect:(CGRect)rect onPage:(CPDFPage *)page offsetY:(CGFloat)offsetY animated:(BOOL)animated textSelectionMode
Enter text selection mode.
@property (nonatomic, assign) BOOL textSelectionModeDeclared In
CPDFView.h
currentSelection
Returns actual instance of the current CPDFSelection object.
@property (nonatomic, readonly) CPDFSelection *currentSelectionDiscussion
Returns actual instance of the current CPDFSelection object.
The view redraws as necessary but does not scroll.
Declared In
CPDFView.h
– clearSelection
Clears the selection.
- (void)clearSelectionDiscussion
Clears the selection.
The view redraws as necessary but does not scroll.
Declared In
CPDFView.h
– goToSelection:animated:
Goes to the first character of the specified selection.
- (void)goToSelection:(CPDFSelection *)selection animated:(BOOL)animatedDiscussion
Goes to the first character of the specified selection.
Declared In
CPDFView.h
– setHighlightedSelection:animated:
The following calls allow you to associate a CPDFSelection with a CPDFView.
- (void)setHighlightedSelection:(CPDFSelection *)selection animated:(BOOL)animatedDiscussion
The following calls allow you to associate a CPDFSelection with a CPDFView.
The selection do not go away when the user clicks in the CPDFView, etc. You must explicitly remove them by passing nil to -[setHighlightedSelection:animated:]. This method allow you to highlight text perhaps to indicate matches from a text search. Commonly used for highlighting search results.
Declared In
CPDFView.h
– documentView
The innermost view used by CPDFView or by your CPDFView subclass.
- (UIScrollView *)documentViewDiscussion
The innermost view used by CPDFView or by your CPDFView subclass.
The innermost view is the one displaying the visible document pages.
Declared In
CPDFView.h
– layoutDocumentView
Performs layout of the inner views.
- (void)layoutDocumentViewDiscussion
Performs layout of the inner views.
The CPDFView actually contains several subviews. Changes to the PDF content may require changes to these inner views, so you must call this method explicitly if you use PDF Kit utility classes to add or remove a page, rotate a page, or perform other operations affecting visible layout. This method is called automatically from CPDFView methods that affect the visible layout (such as setDocument:).
Declared In
CPDFView.h
– setNeedsDisplayForVisiblePages
Draw and render of the currently visible pages.
- (void)setNeedsDisplayForVisiblePagesDiscussion
Draw and render of the currently visible pages.
Declared In
CPDFView.h
– setNeedsDisplayForPage:
Draw and render of the specified page.
- (void)setNeedsDisplayForPage:(CPDFPage *)pageDiscussion
Draw and render of the specified page.
Declared In
CPDFView.h
– drawPage:toContext:
Draw and render a visible page to a context.
- (void)drawPage:(CPDFPage *)page toContext:(CGContextRef)contextDiscussion
Draw and render a visible page to a context.
For subclasses. This method is called for each visible page requiring rendering. By subclassing you can draw on top of the PDF page.
Declared In
CPDFView.h
– menuItemsAtPoint:forPage:
- (NSArray<UIMenuItem*> *)menuItemsAtPoint:(CGPoint)point forPage:(CPDFPage *)page– touchCancelledAtPoint:forPage:
- (void)touchCancelledAtPoint:(CGPoint)point forPage:(CPDFPage *)page– longPressAnnotation:atPoint:forPage:
- (void)longPressAnnotation:(CPDFAnnotation *)annotation atPoint:(CGPoint)point forPage:(CPDFPage *)page– longPressGestureShouldBeginAtPoint:forPage:
- (BOOL)longPressGestureShouldBeginAtPoint:(CGPoint)point forPage:(CPDFPage *)page– convertPoint:toPage:
Converts a point from view space to page space.
- (CGPoint)convertPoint:(CGPoint)point toPage:(CPDFPage *)pageDiscussion
Converts a point from view space to page space.
Page space is a coordinate system with the origin at the lower-left corner of the current page. View space is a coordinate system with the origin at the upper-left corner of the current PDF view.
Declared In
CPDFView.h
– convertRect:toPage:
Converts a rectangle from view space to page space.
- (CGRect)convertRect:(CGRect)rect toPage:(CPDFPage *)pageDiscussion
Converts a rectangle from view space to page space.
Page space is a coordinate system with the origin at the lower-left corner of the current page. View space is a coordinate system with the origin at the upper-left corner of the current PDF view.
Declared In
CPDFView.h
– convertPoint:fromPage:
Converts a point from page space to view space.
- (CGPoint)convertPoint:(CGPoint)point fromPage:(CPDFPage *)pageDiscussion
Converts a point from page space to view space.
Page space is a coordinate system with the origin at the lower-left corner of the current page. View space is a coordinate system with the origin at the upper-left corner of the current PDF view.
Declared In
CPDFView.h
– convertRect:fromPage:
Converts a rectangle from page space to view space.
- (CGRect)convertRect:(CGRect)rect fromPage:(CPDFPage *)pageDiscussion
Converts a rectangle from page space to view space.
Page space is a coordinate system with the origin at the lower-left corner of the current page. View space is a coordinate system with the origin at the upper-left corner of the current PDF view.
Declared In
CPDFView.h
editingConfig
This method is about configuring of editing content.
@property (nonatomic, strong) CPDFEditingConfig *editingConfigDiscussion
This method is about configuring of editing content.
Declared In
CPDFView.h
editingLoadType
The properties of the editing modes: Edit text, edit images, edit text & images.
@property (nonatomic, readonly) CEditingLoadType editingLoadTypeDiscussion
The properties of the editing modes: Edit text, edit images, edit text & images.
Declared In
CPDFView.h
– beginEditingLoadType:
Begins editing content.
- (void)beginEditingLoadType:(CEditingLoadType)editingLoadTypeDiscussion
Begins editing content.
Declared In
CPDFView.h
– changeEditingLoadType:
Change the editing modes.
- (void)changeEditingLoadType:(CEditingLoadType)editingLoadTypeDiscussion
Change the editing modes.
Declared In
CPDFView.h
– shouAddEditAreaType
Text adding mode or image adding mode.
- (CAddEditingAreaType)shouAddEditAreaTypeDiscussion
Text adding mode or image adding mode.
Declared In
CPDFView.h
– setShouAddEditAreaType:
Which feature mode (Setting text or images).
- (void)setShouAddEditAreaType:(CAddEditingAreaType)shouAddEditAreaTypeDiscussion
Which feature mode (Setting text or images).
Declared In
CPDFView.h
– endOfEditing
Ends editing content.
- (void)endOfEditingDiscussion
Ends editing content.
Declared In
CPDFView.h
– commitEditing
Submits the edited content.
- (void)commitEditingDiscussion
Submits the edited content.
Declared In
CPDFView.h
– isEditing
Gets whether to enter the editing mode.
- (BOOL)isEditingDiscussion
Gets whether to enter the editing mode.
Declared In
CPDFView.h
– isEdited
Whether the content is modified.
- (BOOL)isEditedDiscussion
Whether the content is modified.
Declared In
CPDFView.h
– editingArea
The selected block.
- (CPDFEditArea *)editingAreaDiscussion
The selected block.
Declared In
CPDFView.h
– isClickSelectCharItem
The location of the click is the cursor position
- (BOOL)isClickSelectCharItemDiscussion
The location of the click is the cursor position
Declared In
CPDFView.h
– menuItemsEditingAtPoint:forPage:
Clicks the context menu of block.
- (NSArray<UIMenuItem*> *)menuItemsEditingAtPoint:(CGPoint)point forPage:(CPDFPage *)pageDiscussion
Clicks the context menu of block.
Declared In
CPDFView.h
– editStatus
The statuses when editing.
- (CEditingSelectState)editStatusDiscussion
The statuses when editing.
See Also
Declared In
CPDFView.h
– endEditIsRemoveBlockWithEditArea:
Remove editing area when finishing editing.
- (void)endEditIsRemoveBlockWithEditArea:(CPDFEditArea *)editAreaDiscussion
Remove editing area when finishing editing.
Declared In
CPDFView.h
– clearEditingSelectCharItem
Clear the selected text item during editing.
- (void)clearEditingSelectCharItemDiscussion
Clear the selected text item during editing.
Declared In
CPDFView.h
– clearEditingSelectCharRange
Clear the editing area.
- (void)clearEditingSelectCharRangeDiscussion
Clear the editing area.
Declared In
CPDFView.h
– setBoundsEditArea:withBounds:
Sets the position of the text (image) block
- (void)setBoundsEditArea:(CPDFEditArea *)editArea withBounds:(CGRect)boundsDiscussion
Sets the position of the text (image) block
Declared In
CPDFView.h
– deleteEditingArea:
Delete text (image) block
- (void)deleteEditingArea:(CPDFEditArea *)editAreaDiscussion
Delete text (image) block
Declared In
CPDFView.h
– canEditTextUndo
Whether to support undo on current page.
- (BOOL)canEditTextUndoDiscussion
Whether to support undo on current page.
Declared In
CPDFView.h
– canEditTextRedo
Whether to support redo on current page.
- (BOOL)canEditTextRedoDiscussion
Whether to support redo on current page.
Declared In
CPDFView.h
– editTextUndo
Undo on current page.
- (void)editTextUndoDiscussion
Undo on current page.
Declared In
CPDFView.h
– editTextRedo
Redo on current page.
- (void)editTextRedoDiscussion
Redo on current page.
Declared In
CPDFView.h
– editingSelectionFontSize
Gets the font size of a text block or a piece of text.
- (CGFloat)editingSelectionFontSizeDiscussion
Gets the font size of a text block or a piece of text.
Declared In
CPDFView.h
– editingSelectionFontSizesWithTextArea:
- (CGFloat)editingSelectionFontSizesWithTextArea:(CPDFEditTextArea *)textArea– setEditingSelectionFontSize:withTextArea:isAutoSize:
Sets the font size of a text block or a piece of text.
- (void)setEditingSelectionFontSize:(CGFloat)fontSize withTextArea:(CPDFEditTextArea *)textArea isAutoSize:(BOOL)isAutoSizeDiscussion
Sets the font size of a text block or a piece of text.
Declared In
CPDFView.h
– editingSelectionFontColor
Gets the font color of a text block or a piece of text.
- (CPDFKitPlatformColor *)editingSelectionFontColorDiscussion
Gets the font color of a text block or a piece of text.
Declared In
CPDFView.h
– editingSelectionFontColorWithTextArea:
- (CPDFKitPlatformColor *)editingSelectionFontColorWithTextArea:(CPDFEditTextArea *)textArea– setEditingSelectionFontColor:
Sets the font color of a text block or a piece of text.
- (void)setEditingSelectionFontColor:(CPDFKitPlatformColor *)fontColorDiscussion
Sets the font color of a text block or a piece of text.
Declared In
CPDFView.h
– setEditingSelectionFontColor:withTextArea:
- (void)setEditingSelectionFontColor:(CPDFKitPlatformColor *)fontColor withTextArea:(CPDFEditTextArea *)textArea– editingSelectionAlignment
Gets the alignment of a text block or a piece of text.
- (NSTextAlignment)editingSelectionAlignmentDiscussion
Gets the alignment of a text block or a piece of text.
Declared In
CPDFView.h
– editingSelectionAlignmentWithTextArea:
- (NSTextAlignment)editingSelectionAlignmentWithTextArea:(CPDFEditTextArea *)textArea– setCurrentSelectionAlignment:
Sets the alignment of a text block or a piece of text.
- (void)setCurrentSelectionAlignment:(NSTextAlignment)alignmentDiscussion
Sets the alignment of a text block or a piece of text.
Declared In
CPDFView.h
– setCurrentSelectionAlignment:withTextArea:
- (void)setCurrentSelectionAlignment:(NSTextAlignment)alignment withTextArea:(CPDFEditTextArea *)textArea– editingSelectionFontName
The font name of the currently selected text block.
- (NSString *)editingSelectionFontNameDiscussion
The font name of the currently selected text block.
Declared In
CPDFView.h
– editingSelectionFontNameWithTextArea:
- (NSString *)editingSelectionFontNameWithTextArea:(CPDFEditTextArea *)textArea– editingSelectionCFontWithTextArea:
- (CPDFFont *)editingSelectionCFontWithTextArea:(CPDFEditTextArea *)textArea– setEditingSelectionFontName:
Sets the font name of the selected text block. (Several standard fonts are currently supported)
- (void)setEditingSelectionFontName:(NSString *)fontNameDiscussion
Sets the font name of the selected text block. (Several standard fonts are currently supported)
Declared In
CPDFView.h
– setEditingSelectionFontName:withTextArea:
- (void)setEditingSelectionFontName:(NSString *)fontName withTextArea:(CPDFEditTextArea *)textArea– setEditSelectionCFont:withTextArea:
- (BOOL)setEditSelectionCFont:(CPDFFont *_Nonnull)font withTextArea:(CPDFEditTextArea *_Nullable)textArea– setCurrentSelectionIsItalic:
Sets the currently selected text is italic.
- (void)setCurrentSelectionIsItalic:(BOOL)isItalicDiscussion
Sets the currently selected text is italic.
Declared In
CPDFView.h
– setCurrentSelectionIsItalic:withTextArea:
- (BOOL)setCurrentSelectionIsItalic:(BOOL)isItalic withTextArea:(CPDFEditTextArea *)textArea– isItalicCurrentSelection
Whether the font of the currently selected text block is italic.
- (BOOL)isItalicCurrentSelectionDiscussion
Whether the font of the currently selected text block is italic.
Declared In
CPDFView.h
– isItalicCurrentSelectionWithTextArea:
- (BOOL)isItalicCurrentSelectionWithTextArea:(CPDFEditTextArea *)textArea– setCurrentSelectionIsBold:
Sets the currently selected text is bold.
- (void)setCurrentSelectionIsBold:(BOOL)isBoldDiscussion
Sets the currently selected text is bold.
Declared In
CPDFView.h
– setCurrentSelectionIsBold:withTextArea:
- (BOOL)setCurrentSelectionIsBold:(BOOL)isBold withTextArea:(CPDFEditTextArea *)textArea– isBoldCurrentSelection
Whether the font of the currently selected text block is bold.
- (BOOL)isBoldCurrentSelectionDiscussion
Whether the font of the currently selected text block is bold.
Declared In
CPDFView.h
– isBoldCurrentSelectionWithTextArea:
- (BOOL)isBoldCurrentSelectionWithTextArea:(CPDFEditTextArea *)textArea– setCurrentSelectionShowUnderline:withTextArea:
Sets the currently selected text show underline.
- (BOOL)setCurrentSelectionShowUnderline:(BOOL)showUnderline withTextArea:(CPDFEditTextArea *)textAreaParameters
showUnderline |
Whether to display underline, YES indicates setting display, NO indicates deleting |
|---|---|
textArea |
The area of the text selected |
Discussion
Sets the currently selected text show underline.
Declared In
CPDFView.h
– setCurrentSelectionShowStrikeout:withTextArea:
Sets the currently selected text show strikeout.
- (BOOL)setCurrentSelectionShowStrikeout:(BOOL)showStrikeout withTextArea:(CPDFEditTextArea *)textAreaParameters
showStrikeout |
Whether to display strikeout, YES indicates setting display, NO indicates deleting |
|---|---|
textArea |
The area of the text selected |
Discussion
Sets the currently selected text show strikeout.
Declared In
CPDFView.h
– createEmptyStringBounds:withAttributes:page:
Create a blank text block.
- (BOOL)createEmptyStringBounds:(CGRect)rect withAttributes:(NSDictionary<NSAttributedStringKey,id> *)attributes page:(CPDFPage *)pageParameters
rect |
The area of the text box. |
|---|---|
attributes |
The text font properties. |
page |
The created page number. |
Return Value
Returns whether the creation is successful.
Discussion
Create a blank text block.
Declared In
CPDFView.h
– createStringBounds:withAttributes:page:
Create a blank text block.
- (BOOL)createStringBounds:(CGRect)rect withAttributes:(CEditAttributes *_Nullable)attributes page:(CPDFPage *_Nonnull)pageParameters
rect |
The area of the text box. |
|---|---|
attributes |
The text font properties. |
page |
The created page number. |
Return Value
Returns whether the creation is successful.
Discussion
Create a blank text block.
Declared In
CPDFView.h
– setCharsFontTransparency:
Sets text transparency.
- (BOOL)setCharsFontTransparency:(float)transparencyDiscussion
Sets text transparency.
Declared In
CPDFView.h
– setCharsFontTransparency:withTextArea:
- (BOOL)setCharsFontTransparency:(float)transparency withTextArea:(CPDFEditTextArea *)textArea– jumpEditingLoction:withTextArea:isSelectRanage:
Jump cursor to a specific position in a text area.
- (void)jumpEditingLoction:(CEditingLocation)editingLocation withTextArea:(CPDFEditTextArea *)editArea isSelectRanage:(BOOL)isSelectRanageParameters
editingLocation |
Cursor position |
|---|---|
editArea |
Current text block |
isSelectRanage |
Whether to select text from the current cursor position till the end of the cursor position. |
Discussion
Jump cursor to a specific position in a text area.
Declared In
CPDFView.h
– getCurrentOpacity
Get the opacity of image boxes or the last character of the text.
- (CGFloat)getCurrentOpacityDiscussion
Get the opacity of image boxes or the last character of the text.
Declared In
CPDFView.h
– editingSelectionFontSizeByRangeEditArea:
Get the font size of a certain range of text.
- (CGFloat)editingSelectionFontSizeByRangeEditArea:(CPDFEditTextArea *)editAreaDiscussion
Get the font size of a certain range of text.
Declared In
CPDFView.h
– editingSelectionFontColorByRangeEditArea:
Get the font color of a certain range of text.
- (CPDFKitPlatformColor *)editingSelectionFontColorByRangeEditArea:(CPDFEditTextArea *)editAreaDiscussion
Get the font color of a certain range of text.
Declared In
CPDFView.h
– editingSelectionFontNameByRangeEditArea:
Get the font name of a certain range of text.
- (NSString *)editingSelectionFontNameByRangeEditArea:(CPDFEditTextArea *)editAreaDiscussion
Get the font name of a certain range of text.
Declared In
CPDFView.h
– isItalicCurrentSelectionByRangeEditArea:
Determine whether a certain range of text is italic.
- (BOOL)isItalicCurrentSelectionByRangeEditArea:(CPDFEditTextArea *)editAreaDiscussion
Determine whether a certain range of text is italic.
Declared In
CPDFView.h
– isBoldCurrentSelectionByRangeEditArea:
Determine whether a certain range of text is bold.
- (BOOL)isBoldCurrentSelectionByRangeEditArea:(CPDFEditTextArea *)editAreaDiscussion
Determine whether a certain range of text is bold.
Declared In
CPDFView.h
– currentSelectionAlignmentByRangeEditArea:
Get the alignment of a certain range of text.
- (NSTextAlignment)currentSelectionAlignmentByRangeEditArea:(CPDFEditTextArea *)editAreaDiscussion
Get the alignment of a certain range of text.
Declared In
CPDFView.h
– opacityByRangeForEditArea:
Get the opacity of a certain range of text.
- (CGFloat)opacityByRangeForEditArea:(CPDFEditArea *)editAreaDiscussion
Get the opacity of a certain range of text.
Declared In
CPDFView.h
– textFocusedOnWithTextArea:
Enter text editing state.
- (BOOL)textFocusedOnWithTextArea:(CPDFEditTextArea *)textAreaDiscussion
Enter text editing state.
Declared In
CPDFView.h
– textFocusedOffWithTextArea:
End text editing state.
- (BOOL)textFocusedOffWithTextArea:(CPDFEditTextArea *)textAreaDiscussion
End text editing state.
Declared In
CPDFView.h
– rotateEditArea:rotateAngle:
- (void)rotateEditArea:(CPDFEditImageArea *)editArea rotateAngle:(float)angle– extractImageEditArea:filePath:
- (BOOL)extractImageEditArea:(CPDFEditImageArea *)editArea filePath:(NSString *)filePath– setImageTransparencyEditArea:transparency:
- (BOOL)setImageTransparencyEditArea:(CPDFEditImageArea *)editArea transparency:(float)transparency– createEmptyImage:page:path:
- (BOOL)createEmptyImage:(CGRect)rect page:(CPDFPage *)page path:(NSString *)imagePath– createEmptyImage:page:image:
- (BOOL)createEmptyImage:(CGRect)rect page:(CPDFPage *_Nonnull)page image:(CPDFKitPlatformImage *_Nonnull)image– replaceEditImageArea:imagePath:rect:
- (BOOL)replaceEditImageArea:(CPDFEditImageArea *)editArea imagePath:(NSString *)imagePath rect:(CGRect)rect– replaceEditImageArea:image:rect:
- (BOOL)replaceEditImageArea:(CPDFEditImageArea *_Nonnull)editArea image:(CPDFKitPlatformImage *_Nonnull)image rect:(CGRect)rectEditingDeprecated Methods
– replaceEditImageArea:imagePath:
- (BOOL)replaceEditImageArea:(CPDFEditImageArea *)editArea imagePath:(NSString *)imagePath