Skip to content

PDFKit macOS xcode26.0 b1

Alex Soto edited this page Jun 9, 2025 · 1 revision

#PDFKit.framework

diff -ruN /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PDFKit.framework/Headers/PDFAnnotationUtilities.h /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PDFKit.framework/Headers/PDFAnnotationUtilities.h
--- /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PDFKit.framework/Headers/PDFAnnotationUtilities.h	2025-04-19 06:54:48
+++ /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PDFKit.framework/Headers/PDFAnnotationUtilities.h	2025-05-25 04:43:08
@@ -241,6 +241,12 @@
 // Used by annotations type(s): /Widget (field type(s): /Btn).
 @property (nonatomic, copy) NSString *buttonWidgetStateString;
 
+// This is a property that holds the annotations that would represent the signature that was used to sign this widget.
+// It changes with the platform.
+// On iOS this field holds a struct that represents a PPK Signature
+// On OSX this field holds the AKSignatureAnnotation
+@property (nonatomic, copy, nullable) id signatureAnnotationForRendering;
+
 // Used to tell if an annotation is open or closed.
 // Used by annotations type(s): /Popup.
 @property (nonatomic, getter=isOpen) BOOL open;
diff -ruN /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PDFKit.framework/Headers/PDFDocument.h /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PDFKit.framework/Headers/PDFDocument.h
--- /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PDFKit.framework/Headers/PDFDocument.h	2025-04-19 04:09:14
+++ /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PDFKit.framework/Headers/PDFDocument.h	2025-05-25 04:39:15
@@ -168,6 +168,7 @@
 // in a bogus password.  Returns YES if the document is now unlocked, NO otherwise ([self isLocked] == NO).
 - (BOOL)unlockWithPassword:(NSString *)password;
 
+
 // Even unlocked, encrypted PDF's may have certain restrictions regarding printing, copying, etc. placed upon them. These
 // indicate the current state.
 // Based on Adobe PDF Specification (1.7) Table 3.20: User access permissions
diff -ruN /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PDFKit.framework/Headers/PDFPage.h /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PDFKit.framework/Headers/PDFPage.h
--- /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PDFKit.framework/Headers/PDFPage.h	2025-04-19 03:55:04
+++ /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PDFKit.framework/Headers/PDFPage.h	2025-05-25 03:24:04
@@ -29,6 +29,8 @@
     kPDFIconArea =          (1UL << 6),
     kPDFPopupArea =         (1UL << 7),
     kPDFImageArea =         (1UL << 8),
+    kPDFTableArea =         (1UL << 9),
+    kPDFTableResizeArea =   (1UL << 10),
 
     kPDFAnyArea =           NSIntegerMax
 };
@@ -145,6 +147,12 @@
 - (NSInteger)characterIndexAtPoint:(PDFPoint)point;
 
 // -------- selections
+
+// Custom function to handle the copying of entire table cells within annotated/detected tables
+- (nullable PDFSelection *)selectionForTableRect:(PDFRect)tableRect;
+
+// Returns a selection representing table cells between startPoint and endPoint
+- (nullable PDFSelection *)tableSelectionFromPoint:(PDFPoint)startPoint toPoint:(PDFPoint)endPoint;
 
 // Given a rect in page-space, returns a selection representing enclosed text on page.
 - (nullable PDFSelection *)selectionForRect:(PDFRect)rect;
Clone this wiki locally