Bladeren bron

【ComPDFKit】更新版本至V2.1.3

tangchao 1 dag geleden
bovenliggende
commit
5faf83aad6

BIN
PDF Office/PDF Master/Class/PDFWindowController/PDFSDK/ComPDFKit.framework/Versions/A/ComPDFKit


+ 7 - 1
PDF Office/PDF Master/Class/PDFWindowController/PDFSDK/ComPDFKit.framework/Versions/A/Headers/CPDFDocument.h

@@ -325,6 +325,8 @@ extern CPDFDocumentWriteOption const CPDFDocumentAllowsFormFieldEntryOption;
  * A array of document’s bookmarks.
  */
 - (NSArray<CPDFBookmark *> *)bookmarks;
+
+- (void)bookmarksBlock:(void(^)(NSArray<CPDFBookmark *> *))block;
 /**
  * Add a bookmark at the specified index number.
  *
@@ -344,6 +346,7 @@ extern CPDFDocumentWriteOption const CPDFDocumentAllowsFormFieldEntryOption;
  */
 - (CPDFBookmark *)bookmarkForPageIndex:(NSUInteger)pageIndex;
 
+- (void)bookmarkForPageIndex:(NSUInteger)pageIndex block:(void (^)(CPDFBookmark *bookmark))block;
 #pragma mark - Watermark
 
 /**
@@ -483,7 +486,10 @@ extern CPDFDocumentWriteOption const CPDFDocumentAllowsFormFieldEntryOption;
  * @discussion This method raises an exception if either index value is out of bounds.
  */
 - (BOOL)importPages:(NSIndexSet *)indexSet fromDocument:(CPDFDocument *)document atIndex:(NSUInteger)index;
-
+/**
+ * Retrieve the page data
+ */
+- (void)refreshPageData;
 #pragma mark - Annotations
 
 /**

+ 1 - 0
PDF Office/PDF Master/Class/PDFWindowController/PDFSDK/ComPDFKit.framework/Versions/A/Headers/CPDFKitConfig.h

@@ -13,6 +13,7 @@
 #import <Foundation/Foundation.h>
 #import <ComPDFKit/CPDFKitPlatform.h>
 #import <ComPDFKit/CPDFView.h>
+#import <ComPDFKit/CTaskQueueManager.h>
 
 #define CPDFKitShareConfig [CPDFKitConfig sharedInstance]
 

+ 23 - 0
PDF Office/PDF Master/Class/PDFWindowController/PDFSDK/ComPDFKit.framework/Versions/A/Headers/CTaskQueueManager.h

@@ -0,0 +1,23 @@
+//
+//  CTaskQueueManager.h
+//  ComPDFKit
+//
+//  Created by lizhe on 2024/11/5.
+//  Copyright © 2024 Kdan Mobile. All rights reserved.
+//
+
+#import <Foundation/Foundation.h>
+
+NS_ASSUME_NONNULL_BEGIN
+
+@interface CTaskQueueManager : NSObject
++ (instancetype)sharedManager;
+
+// 提交异步任务
+- (void)submitAsyncTask:(dispatch_block_t)task;
+
+// 提交同步任务(自动避免死锁)
+- (void)submitSyncTask:(dispatch_block_t)task;
+@end
+
+NS_ASSUME_NONNULL_END

+ 1 - 0
PDF Office/PDF Master/Class/PDFWindowController/PDFSDK/ComPDFKit.framework/Versions/A/Headers/ComPDFKit.h

@@ -14,6 +14,7 @@
 #import <ComPDFKit/CPDFKitPlatform.h>
 #import <ComPDFKit/CPDFKitConfig.h>
 #import <ComPDFKit/CPDFKitConfig+Private.h>
+#import <ComPDFKit/CTaskQueueManager.h>
 
 #import <ComPDFKit/CPDFDocument.h>
 #import <ComPDFKit/CPDFDocument+Protected.h>

+ 17 - 6
PDF Office/PDF Master/Class/PDFWindowController/PDFSDK/ComPDFKit.framework/Versions/A/_CodeSignature/CodeResources

@@ -453,11 +453,11 @@
 		<dict>
 			<key>hash</key>
 			<data>
-			rqqbWoI4dh2usPOtmoYvD8UahN4=
+			IRraHiEKIrpafzsIG6Nc0wSw2b0=
 			</data>
 			<key>hash2</key>
 			<data>
-			3is49wTM94aSCJKeuCpB4DBmOyT4ees6jCsX4CU5H/4=
+			xnuTrYCMEavy7c6F7BQBzV7K3VCbL18UHqFkRQYSYQw=
 			</data>
 		</dict>
 		<key>Headers/CPDFFont.h</key>
@@ -563,11 +563,11 @@
 		<dict>
 			<key>hash</key>
 			<data>
-			OBkRjNohyfKPhwG1Js5Jto1p/ZI=
+			OxEfUUaAJW5+1NQlhKPDDr3d0xI=
 			</data>
 			<key>hash2</key>
 			<data>
-			dvWbg/U+9mfpQu/PWX2bKzwntt2HVkKr1dt7zxaqdig=
+			B76IoMNcQSB8gKiVEFjSpGqAOLCjqxajfLqTCs+VP8g=
 			</data>
 		</dict>
 		<key>Headers/CPDFKitPlatform.h</key>
@@ -1043,15 +1043,26 @@
 			SL6gNtUQF57K98s8avS/iLaj4RY7uG1++xnAtUomrio=
 			</data>
 		</dict>
+		<key>Headers/CTaskQueueManager.h</key>
+		<dict>
+			<key>hash</key>
+			<data>
+			KkeLLP94uCu2UPcgFt9XQWQi+Bs=
+			</data>
+			<key>hash2</key>
+			<data>
+			7ZNcZGW7oTu8rNljut0usNSWF20GMAF/pWTHwS5pc84=
+			</data>
+		</dict>
 		<key>Headers/ComPDFKit.h</key>
 		<dict>
 			<key>hash</key>
 			<data>
-			CDRfV2dScLKYZSpYacqjHNsY9V0=
+			p5a1kEdDH3FuibZKLtll5J1dVpY=
 			</data>
 			<key>hash2</key>
 			<data>
-			S/mBV0Gpw6ZSbO2zQWXks+TnbSZEGPqDBBd47trbfpw=
+			18WmgRCd8NPfbBSrWbKY0VfBVs3WWkbQsjqUIXD7PZQ=
 			</data>
 		</dict>
 		<key>Modules/module.modulemap</key>