Преглед изворни кода

库(iOS) - 补充图片相关的接口

chenyu пре 1 година
родитељ
комит
18f6cbb6f7

BIN
Lib/ComPDFKit.xcframework/ios-arm64_armv7/ComPDFKit.framework/ComPDFKit


+ 12 - 0
Lib/ComPDFKit.xcframework/ios-arm64_armv7/ComPDFKit.framework/Headers/CPDFDocument.h

@@ -70,6 +70,14 @@ typedef NS_ENUM(NSInteger, CPDFType) {
     CPDFTypePDFA3b
 };
 
+typedef NS_ENUM(NSInteger, CPDFDocumentEncryptionLevel) {
+    CPDFDocumentEncryptionLevelRC4 = 0,
+    CPDFDocumentEncryptionLevelAES128,
+    CPDFDocumentEncryptionLevelAES256,
+    //If the encryption level is set to CPDFDocumentEncryptionLevelNoEncryptAlgo, it is equivalent to encrypting with the RC4 algorithm; if the document encryption level obtained is CPDFDocumentNoEncryptAlgo, it means that the document is not encrypted.
+    CPDFDocumentEncryptionLevelNoEncryptAlgo
+};
+
 typedef NSString *CPDFDocumentAttribute NS_STRING_ENUM;
 
 extern CPDFDocumentAttribute const CPDFDocumentTitleAttribute;             // NSString containing document title.
@@ -85,6 +93,7 @@ typedef NSString *CPDFDocumentWriteOption NS_STRING_ENUM;
 
 extern CPDFDocumentWriteOption const CPDFDocumentOwnerPasswordOption;      // NSString for the owner's password.
 extern CPDFDocumentWriteOption const CPDFDocumentUserPasswordOption;       // NSString for the user's password.
+extern CPDFDocumentWriteOption const CPDFDocumentEncryptionLevelOption;
 
 extern CPDFDocumentWriteOption const CPDFDocumentAllowsPrintingOption;
 extern CPDFDocumentWriteOption const CPDFDocumentAllowsHighQualityPrintingOption;
@@ -224,6 +233,9 @@ extern CPDFDocumentWriteOption const CPDFDocumentAllowsFormFieldEntryOption;
  */
 @property (nonatomic,readonly) BOOL allowsFormFieldEntry;
 
+
+@property (nonatomic,readonly) CPDFDocumentEncryptionLevel encryptionLevel;
+
 #pragma mark - Save
 
 /**

+ 86 - 2
Lib/ComPDFKit.xcframework/ios-arm64_armv7/ComPDFKit.framework/Headers/CPDFView.h

@@ -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

Разлика између датотеке није приказан због своје велике величине
+ 0 - 1062
Lib/ComPDFKit.xcframework/ios-arm64_armv7/ComPDFKit.framework/_CodeSignature/CodeResources


BIN
Lib/ComPDFKit.xcframework/ios-x86_64-simulator/ComPDFKit.framework/ComPDFKit


+ 12 - 0
Lib/ComPDFKit.xcframework/ios-x86_64-simulator/ComPDFKit.framework/Headers/CPDFDocument.h

@@ -70,6 +70,14 @@ typedef NS_ENUM(NSInteger, CPDFType) {
     CPDFTypePDFA3b
 };
 
+typedef NS_ENUM(NSInteger, CPDFDocumentEncryptionLevel) {
+    CPDFDocumentEncryptionLevelRC4 = 0,
+    CPDFDocumentEncryptionLevelAES128,
+    CPDFDocumentEncryptionLevelAES256,
+    //If the encryption level is set to CPDFDocumentEncryptionLevelNoEncryptAlgo, it is equivalent to encrypting with the RC4 algorithm; if the document encryption level obtained is CPDFDocumentNoEncryptAlgo, it means that the document is not encrypted.
+    CPDFDocumentEncryptionLevelNoEncryptAlgo
+};
+
 typedef NSString *CPDFDocumentAttribute NS_STRING_ENUM;
 
 extern CPDFDocumentAttribute const CPDFDocumentTitleAttribute;             // NSString containing document title.
@@ -85,6 +93,7 @@ typedef NSString *CPDFDocumentWriteOption NS_STRING_ENUM;
 
 extern CPDFDocumentWriteOption const CPDFDocumentOwnerPasswordOption;      // NSString for the owner's password.
 extern CPDFDocumentWriteOption const CPDFDocumentUserPasswordOption;       // NSString for the user's password.
+extern CPDFDocumentWriteOption const CPDFDocumentEncryptionLevelOption;
 
 extern CPDFDocumentWriteOption const CPDFDocumentAllowsPrintingOption;
 extern CPDFDocumentWriteOption const CPDFDocumentAllowsHighQualityPrintingOption;
@@ -224,6 +233,9 @@ extern CPDFDocumentWriteOption const CPDFDocumentAllowsFormFieldEntryOption;
  */
 @property (nonatomic,readonly) BOOL allowsFormFieldEntry;
 
+
+@property (nonatomic,readonly) CPDFDocumentEncryptionLevel encryptionLevel;
+
 #pragma mark - Save
 
 /**

+ 86 - 2
Lib/ComPDFKit.xcframework/ios-x86_64-simulator/ComPDFKit.framework/Headers/CPDFView.h

@@ -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

+ 6 - 6
Lib/ComPDFKit.xcframework/ios-x86_64-simulator/ComPDFKit.framework/_CodeSignature/CodeResources

@@ -50,7 +50,7 @@
 		</data>
 		<key>Headers/CPDFDocument.h</key>
 		<data>
-		gJd/jobcJsXOwQzgnzIfvYRmMXQ=
+		N2g9d4G8B5veODAmg54BxT8i9s0=
 		</data>
 		<key>Headers/CPDFFreeTextAnnotation.h</key>
 		<data>
@@ -158,7 +158,7 @@
 		</data>
 		<key>Headers/CPDFView.h</key>
 		<data>
-		V5eM/drxjZMSXk/eCX3bjDRiaNI=
+		kf6aPu6xDN2Vk1+FLMDrySeASpE=
 		</data>
 		<key>Headers/CPDFWatermark.h</key>
 		<data>
@@ -392,11 +392,11 @@
 		<dict>
 			<key>hash</key>
 			<data>
-			gJd/jobcJsXOwQzgnzIfvYRmMXQ=
+			N2g9d4G8B5veODAmg54BxT8i9s0=
 			</data>
 			<key>hash2</key>
 			<data>
-			ptbozi6EyH06LROX1jqJYYVKT7HsaVoJx77vpJzZ7hA=
+			Q8NH9trdHFe6+59ywX8OHHaYfAKZMst61UQOvL0Snl0=
 			</data>
 		</dict>
 		<key>Headers/CPDFFreeTextAnnotation.h</key>
@@ -689,11 +689,11 @@
 		<dict>
 			<key>hash</key>
 			<data>
-			V5eM/drxjZMSXk/eCX3bjDRiaNI=
+			kf6aPu6xDN2Vk1+FLMDrySeASpE=
 			</data>
 			<key>hash2</key>
 			<data>
-			nF2VA2fe+h7sKD61CDSlFe1a4SpSqipcq4fwpTMdX9w=
+			5Tuv0O4VxlfcFL1EJaAluyxKDsU19lMengES49zU31g=
 			</data>
 		</dict>
 		<key>Headers/CPDFWatermark.h</key>