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, retain) CPDFDocument *document
Discussion
Methods for associating a CPDFDocument with a CPDFView.
Declared In
CPDFView.h
delegate
Returns the view’s delegate.
@property (nonatomic, assign) id<CPDFViewDelegate> delegate
Discussion
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 displaysAsBook
Discussion
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 displayDirection
Discussion
The layout direction, either vertical or horizontal, for the given display mode.
Defaults to vertical layout (CPDFDisplayDirectionVertical).
See Also
Declared In
CPDFView.h
displaysPageBreaks
A Boolean value indicating whether the view is displaying page breaks.
@property (nonatomic, assign) BOOL displaysPageBreaks
Discussion
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 pageBreakMargins
Discussion
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 displayMode
Discussion
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, retain) UIColor *displayModeCustomColor
Discussion
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 displayCrop
Discussion
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
directionaHorizontalLockEnabled
A Boolean value that determines whether scrolling is disabled in the vertical direction for the document view.
@property (nonatomic, assign) BOOL directionaHorizontalLockEnabled
Discussion
A Boolean value that determines whether scrolling is disabled in the vertical direction for the document view.
Declared In
CPDFView.h
scaleFactor
The current scale factor for the view.
@property (nonatomic, assign) CGFloat scaleFactor
Discussion
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
currentPageIndex
Returns the current page index.
@property (nonatomic, readonly) NSInteger currentPageIndex
Discussion
Returns the current page index.
Declared In
CPDFView.h
– goToPageIndex:animated:
Scrolls to the specified page.
- (void)goToPageIndex:(NSInteger)pageIndex animated:(BOOL)animated
Discussion
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 *currentDestination
Discussion
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)animated
Discussion
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)animated
Discussion
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 textSelectionMode
Declared In
CPDFView.h
currentSelection
Returns actual instance of the current CPDFSelection object.
@property (nonatomic, readonly) CPDFSelection *currentSelection
Discussion
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)clearSelection
Discussion
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)animated
Discussion
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)animated
Discussion
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 *)documentView
Discussion
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)layoutDocumentView
Discussion
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)setNeedsDisplayForVisiblePages
Discussion
Draw and render of the currently visible pages.
Declared In
CPDFView.h
– setNeedsDisplayForPage:
Draw and render of the specified page.
- (void)setNeedsDisplayForPage:(CPDFPage *)page
Discussion
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)context
Discussion
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 *)page
Discussion
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 *)page
Discussion
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 *)page
Discussion
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 *)page
Discussion
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, retain) CPDFEditingConfig *editingConfig
Discussion
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 editingLoadType
Discussion
The properties of the editing modes: Edit text, edit images, edit text & images.
Declared In
CPDFView.h
– beginEditingLoadType:
Begins editing content.
- (void)beginEditingLoadType:(CEditingLoadType)editingLoadType
Discussion
Begins editing content.
Declared In
CPDFView.h
– changeEditingLoadType:
Change the editing modes.
- (void)changeEditingLoadType:(CEditingLoadType)editingLoadType
Discussion
Change the editing modes.
Declared In
CPDFView.h
– shouAddEditAreaType
Text adding mode or image adding mode.
- (CAddEditingAreaType)shouAddEditAreaType
Discussion
Text adding mode or image adding mode.
Declared In
CPDFView.h
– setShouAddEditAreaType:
Which feature mode (Setting text or images).
- (void)setShouAddEditAreaType:(CAddEditingAreaType)shouAddEditAreaType
Discussion
Which feature mode (Setting text or images).
Declared In
CPDFView.h
– endOfEditing
Ends editing content.
- (void)endOfEditing
Discussion
Ends editing content.
Declared In
CPDFView.h
– commitEditing
Submits the edited content.
- (void)commitEditing
Discussion
Submits the edited content.
Declared In
CPDFView.h
– isEditing
Gets whether to enter the editing mode.
- (BOOL)isEditing
Discussion
Gets whether to enter the editing mode.
Declared In
CPDFView.h
– isEdited
Whether the content is modified.
- (BOOL)isEdited
Discussion
Whether the content is modified.
Declared In
CPDFView.h
– editingArea
The selected block.
- (CPDFEditArea *)editingArea
Discussion
The selected block.
Declared In
CPDFView.h
– isClickSelectCharItem
The location of the click is the cursor position
- (BOOL)isClickSelectCharItem
Discussion
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 *)page
Discussion
Clicks the context menu of block.
Declared In
CPDFView.h
– editStatus
The statuses when editing.
- (CEditingSelectState)editStatus
Discussion
The statuses when editing.
See Also
Declared In
CPDFView.h
– endEditIsRemoveBlockWithEditArea:
Remove editing area when finishing editing.
- (void)endEditIsRemoveBlockWithEditArea:(CPDFEditArea *)editArea
Discussion
Remove editing area when finishing editing.
Declared In
CPDFView.h
– clearEditingSelectCharItem
Clear the selected text item during editing.
- (void)clearEditingSelectCharItem
Discussion
Clear the selected text item during editing.
Declared In
CPDFView.h
– clearEditingSelectCharRange
Clear the editing area.
- (void)clearEditingSelectCharRange
Discussion
Clear the editing area.
Declared In
CPDFView.h
– setBoundsEditArea:withBounds:
Sets the position of the text (image) block
- (void)setBoundsEditArea:(CPDFEditArea *)editArea withBounds:(CGRect)bounds
Discussion
Sets the position of the text (image) block
Declared In
CPDFView.h
– deleteEditingArea:
Delete text (image) block
- (void)deleteEditingArea:(CPDFEditArea *)editArea
Discussion
Delete text (image) block
Declared In
CPDFView.h
– canEditTextUndo
Whether to support undo on current page.
- (BOOL)canEditTextUndo
Discussion
Whether to support undo on current page.
Declared In
CPDFView.h
– canEditTextRedo
Whether to support redo on current page.
- (BOOL)canEditTextRedo
Discussion
Whether to support redo on current page.
Declared In
CPDFView.h
– editTextUndo
Undo on current page.
- (void)editTextUndo
Discussion
Undo on current page.
Declared In
CPDFView.h
– editTextRedo
Redo on current page.
- (void)editTextRedo
Discussion
Redo on current page.
Declared In
CPDFView.h
– editingSelectionFontSize
Gets the font size of a text block or a piece of text.
- (CGFloat)editingSelectionFontSize
Discussion
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)isAutoSize
Discussion
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 *)editingSelectionFontColor
Discussion
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 *)fontColor
Discussion
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)editingSelectionAlignment
Discussion
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)alignment
Discussion
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 *)editingSelectionFontName
Discussion
The font name of the currently selected text block.
Declared In
CPDFView.h
– editingSelectionFontNameWithTextArea:
- (NSString *)editingSelectionFontNameWithTextArea:(CPDFEditTextArea *)textArea
– setEditingSelectionFontName:
Sets the font name of the selected text block. (Several standard fonts are currently supported)
- (void)setEditingSelectionFontName:(NSString *)fontName
Discussion
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
– setCurrentSelectionIsItalic:
Sets the currently selected text is italic.
- (void)setCurrentSelectionIsItalic:(BOOL)isItalic
Discussion
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)isItalicCurrentSelection
Discussion
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)isBold
Discussion
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)isBoldCurrentSelection
Discussion
Whether the font of the currently selected text block is bold.
Declared In
CPDFView.h
– isBoldCurrentSelectionWithTextArea:
- (BOOL)isBoldCurrentSelectionWithTextArea:(CPDFEditTextArea *)textArea
– createEmptyStringBounds:withAttributes:page:
Create a blank text block.
- (BOOL)createEmptyStringBounds:(CGRect)rect withAttributes:(NSDictionary<NSAttributedStringKey,id> *)attributes page:(CPDFPage *)page
Parameters
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)page
Parameters
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)transparency
Discussion
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)isSelectRanage
Parameters
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)getCurrentOpacity
Discussion
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 *)editArea
Discussion
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 *)editArea
Discussion
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 *)editArea
Discussion
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 *)editArea
Discussion
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 *)editArea
Discussion
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 *)editArea
Discussion
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 *)editArea
Discussion
Get the opacity of a certain range of text.
Declared In
CPDFView.h
– getFontList
Gets the Edit supported font name.
- (NSArray *)getFontList
Discussion
Gets the Edit supported font name.
Declared In
CPDFView.h
– textFocusedOnWithTextArea:
Enter text editing state.
- (BOOL)textFocusedOnWithTextArea:(CPDFEditTextArea *)textArea
Discussion
Enter text editing state.
Declared In
CPDFView.h
– textFocusedOffWithTextArea:
End text editing state.
- (BOOL)textFocusedOffWithTextArea:(CPDFEditTextArea *)textArea
Discussion
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)rect
EditingDeprecated Methods
– replaceEditImageArea:imagePath:
- (BOOL)replaceEditImageArea:(CPDFEditImageArea *)editArea imagePath:(NSString *)imagePath