|
@@ -98,6 +98,16 @@ extern NSNotificationName const CPDFViewPageChangedNotification;
|
|
|
*/
|
|
|
@property (nonatomic,retain) NSArray * editingBorderDashPattern;
|
|
|
|
|
|
+/**
|
|
|
+ * Sets the offset interval at which blocks are displayed
|
|
|
+ */
|
|
|
+@property (nonatomic,assign) CGFloat editingOffsetGap;
|
|
|
+
|
|
|
+/**
|
|
|
+ * Set the move range spacing for the text editing page
|
|
|
+ */
|
|
|
+@property (nonatomic,assign) CGFloat pageSpacingGap;
|
|
|
+
|
|
|
@end
|
|
|
|
|
|
@protocol CPDFViewDelegate <NSObject>
|
|
@@ -128,6 +138,8 @@ extern NSNotificationName const CPDFViewPageChangedNotification;
|
|
|
|
|
|
- (void)PDFViewDidEndDragging:(CPDFView *)pdfView;
|
|
|
|
|
|
+- (void)PDFViewEditingCropBoundsDidChanged:(CPDFView *)pdfView editingArea:(CPDFEditArea *)editArea;
|
|
|
+
|
|
|
- (void)PDFViewEditingOperationDidChanged:(CPDFView *)pdfView;
|
|
|
|
|
|
- (void)PDFViewEditingSelectStateDidChanged:(CPDFView *)pdfView;
|
|
@@ -448,6 +460,16 @@ extern NSNotificationName const CPDFViewPageChangedNotification;
|
|
|
*/
|
|
|
- (CPDFEditArea *)editingArea;
|
|
|
|
|
|
+/**
|
|
|
+* Sets the position of the text (image) block
|
|
|
+*/
|
|
|
+- (void)setBoundsEditArea:(CPDFEditArea *)editArea withBounds:(CGRect)bounds;
|
|
|
+
|
|
|
+/**
|
|
|
+* Delete text (image) block
|
|
|
+*/
|
|
|
+- (void)deleteEditingArea:(CPDFEditArea *)editArea;
|
|
|
+
|
|
|
/**
|
|
|
* Clicks the context menu of block.
|
|
|
*/
|
|
@@ -548,12 +570,74 @@ extern NSNotificationName const CPDFViewPageChangedNotification;
|
|
|
* @return Returns whether the creation is successful.
|
|
|
*/
|
|
|
- (BOOL)createEmptyStringBounds:(CGRect)rect withAttributes:(NSDictionary<NSAttributedStringKey, id> *)attributes page:(CPDFPage *)page;
|
|
|
-
|
|
|
-
|
|
|
/**
|
|
|
* Gets the supported font name.
|
|
|
*/
|
|
|
- (NSArray*)getFontList;
|
|
|
+/**
|
|
|
+ * Sets text transparency.
|
|
|
+ */
|
|
|
+- (BOOL)setCharsFontTransparency:(float)transparency;
|
|
|
+
|
|
|
+/*
|
|
|
+* Get the rotation Angle of the picture
|
|
|
+*/
|
|
|
+- (void)getRotationEditArea:(CPDFEditArea*)editArea;
|
|
|
+
|
|
|
+/*
|
|
|
+* Sets the rotation angle of image.
|
|
|
+*/
|
|
|
+- (void)rotateEditArea:(CPDFEditArea *)editArea rotateAngle:(float)angle;
|
|
|
+
|
|
|
+/*
|
|
|
+* Mirrors the image horizontally.
|
|
|
+*/
|
|
|
+- (void)horizontalMirrorEditArea:(CPDFEditArea *)editArea;
|
|
|
+
|
|
|
+/*
|
|
|
+* Mirrors the image vertically.
|
|
|
+*/
|
|
|
+- (void)verticalMirrorEditArea:(CPDFEditArea *)editArea;
|
|
|
+
|
|
|
+/*
|
|
|
+* Crops the specified size.
|
|
|
+*/
|
|
|
+- (void)cropEditArea:(CPDFEditArea *)editArea WithRect:(CGRect)rect;
|
|
|
+
|
|
|
+/*
|
|
|
+* Gets the cropped size.
|
|
|
+*/
|
|
|
+- (CGRect)getClipRectEditArea:(CPDFEditArea *)editArea;
|
|
|
+
|
|
|
+/*
|
|
|
+* Ends cropping.
|
|
|
+*/
|
|
|
+- (void)beginCropEditArea:(CPDFEditArea *)editArea;
|
|
|
+
|
|
|
+/*
|
|
|
+* End cutting
|
|
|
+*/
|
|
|
+- (void)endCropEditArea:(CPDFEditArea *)editArea;
|
|
|
+
|
|
|
+/*
|
|
|
+* Extracts the image to the specified path.
|
|
|
+*/
|
|
|
+- (BOOL)extractImageEditArea:(CPDFEditArea *)editArea filePath:(NSString*)filePath;
|
|
|
+
|
|
|
+/*
|
|
|
+* Gets image transparency.
|
|
|
+*/
|
|
|
+- (float)getImageTransparencyEditArea:(CPDFEditArea *)editArea;
|
|
|
+
|
|
|
+/*
|
|
|
+* Sets image transparency.
|
|
|
+*/
|
|
|
+- (BOOL)setImageTransparencyEditArea:(CPDFEditArea *)editArea transparency:(float)transparency;
|
|
|
+
|
|
|
+/*
|
|
|
+* Adds interface of the image.
|
|
|
+*/
|
|
|
+- (BOOL)createEmptyImage:(CGRect)rect page:(CPDFPage *)page path:(NSString*)imagePath;
|
|
|
|
|
|
|
|
|
@end
|