Skip to content

PDFKit macOS xcode13.0 rc

Alex Soto edited this page Sep 14, 2021 · 1 revision

#PDFKit.framework

diff -ruN /Applications/Xcode_13.0.0-beta5.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PDFKit.framework/Headers/PDFDocument.h /Applications/Xcode_13.0.0-rc.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PDFKit.framework/Headers/PDFDocument.h
--- /Applications/Xcode_13.0.0-beta5.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PDFKit.framework/Headers/PDFDocument.h	2021-08-07 05:24:15.000000000 -0400
+++ /Applications/Xcode_13.0.0-rc.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PDFKit.framework/Headers/PDFDocument.h	2021-08-03 21:52:43.000000000 -0400
@@ -52,10 +52,10 @@
 PDFKIT_EXTERN NSNotificationName const PDFDocumentDidEndFindNotification PDFKIT_AVAILABLE(10_4, 11_0);          // The notification object is self, no userInfo dictionary.
 PDFKIT_EXTERN NSNotificationName const PDFDocumentDidBeginPageFindNotification PDFKIT_AVAILABLE(10_4, 11_0);    // The notification object is self, the userInfo dictionary
                                                                                                                 //     contains the page index as an NSNumber for the key
-                                                                                                                //     PDFDocumentPageIndexKey.
+                                                                                                                //     @"PDFDocumentPageIndex".
 PDFKIT_EXTERN NSNotificationName const PDFDocumentDidEndPageFindNotification PDFKIT_AVAILABLE(10_4, 11_0);      // The notification object is self, the userInfo dictionary
                                                                                                                 //     contains the page index as an NSNumber for the key
-                                                                                                                //     PDFDocumentPageIndexKey.
+                                                                                                                //     @"PDFDocumentPageIndex".
 PDFKIT_EXTERN NSNotificationName const PDFDocumentDidFindMatchNotification PDFKIT_AVAILABLE(10_4, 11_0);        // The notification object is self, the userInfo dictionary
                                                                                                                 //     contains a PDFSelection (found instance) for the key
                                                                                                                 //     @"PDFDocumentFoundSelection".
@@ -63,16 +63,10 @@
 PDFKIT_EXTERN NSNotificationName const PDFDocumentDidEndWriteNotification PDFKIT_AVAILABLE(10_4, 11_0);         // The notification object is self, no userInfo dictionary.
 PDFKIT_EXTERN NSNotificationName const PDFDocumentDidBeginPageWriteNotification PDFKIT_AVAILABLE(10_4, 11_0);   // The notification object is self, the userInfo dictionary
                                                                                                                 //     contains the page index as an NSNumber for the key
-                                                                                                                //     PDFDocumentPageIndexKey.
+                                                                                                                //     @"PDFDocumentPageIndex".
 PDFKIT_EXTERN NSNotificationName const PDFDocumentDidEndPageWriteNotification PDFKIT_AVAILABLE(10_4, 11_0);     // The notification object is self, the userInfo dictionary
                                                                                                                 //     contains the page index as an NSNumber for the key
-                                                                                                                //     PDFDocumentPageIndexKey.
-
-// Notification keys
-PDFKIT_EXTERN NSString* const PDFDocumentFoundSelectionKey PDFKIT_AVAILABLE(11_1, 15_0);                        // User info dictionary key to get PDFSelection from some
-                                                                                                                // notifications described above
-PDFKIT_EXTERN NSString* const PDFDocumentPageIndexKey PDFKIT_AVAILABLE(11_1, 15_0);                             // User info dictionary key to get page index from some
-                                                                                                                // notifications described above
+                                                                                                                //     @"PDFDocumentPageIndex".
 
 // Document attributes (see -[documentAttributes] below).
 typedef NSString *PDFDocumentAttribute NS_STRING_ENUM;
@@ -93,26 +87,6 @@
                                                                                                                 // Owners have full privilege over the document.
 PDFKIT_EXTERN PDFDocumentWriteOption const PDFDocumentUserPasswordOption PDFKIT_AVAILABLE(10_4, 11_0);          // NSString for the user's password. Optional for encryption.
                                                                                                                 // Users can have limited access to modify, print, or write the file.
-PDFKIT_EXTERN PDFDocumentWriteOption const PDFDocumentAccessPermissionsOption PDFKIT_AVAILABLE(12_0, 15_0);     // NSNumber containing a PDFAccessPermissions
-
-// Some PDF access permissions are non-strict supersets of other permissions. Granting access to a superset
-// permission also grants access to permission(s) it is a superset of. These permissions are as follows:
-//
-// * Granting PDFAllowsHighQualityPrinting also grants PDFAllowsLowQualityPrinting
-// * Granting PDFAllowsDocumentChanges also grants PDFAllowsCommenting and PDFAllowsFormFieldEntry
-// * Granting PDFAllowsContentCopying also grants PDFAllowsContentAccessibility
-// * Granting PDFAllowsCommenting also grants PDFAllowsFormFieldEntry
-
-typedef NS_ENUM(NSUInteger, PDFAccessPermissions) {
-    PDFAllowsLowQualityPrinting    = (1 << 0),   // Print at up to 150 DPI
-    PDFAllowsHighQualityPrinting   = (1 << 1),   // Print at any DPI
-    PDFAllowsDocumentChanges       = (1 << 2),   // Modify the document contents except for page management
-    PDFAllowsDocumentAssembly      = (1 << 3),   // Page management: insert, delete, and rotate pages
-    PDFAllowsContentCopying        = (1 << 4),   // Extract content (text, images, etc.)
-    PDFAllowsContentAccessibility  = (1 << 5),   // Extract content, but only for the purpose of accessibility
-    PDFAllowsCommenting            = (1 << 6),   // Create or modify annotations, including form field entries
-    PDFAllowsFormFieldEntry        = (1 << 7)    // Modify form field entries
-};
 
 
 PDFKIT_CLASS_AVAILABLE(10_4, 11_0)
@@ -170,9 +144,6 @@
 @property (nonatomic, readonly) BOOL allowsCommenting PDFKIT_AVAILABLE(10_13, 11_0);              // Create or modify annotations, including form field entries
 @property (nonatomic, readonly) BOOL allowsFormFieldEntry PDFKIT_AVAILABLE(10_13, 11_0);          // Modify form field entries, even if allowsCommenting is NO
 
-// Returns all 7 properties above as a PDFAccessPermissions value.
-@property (nonatomic, readonly) PDFAccessPermissions accessPermissions;
-
 // Returns the permissions status of the PDF document. You have kPDFDocumentPermissionsNone status for an encrypted 
 // document that you have not supplied either a valid user or owner password. For a document with no encryption, you 
 // automatically have kPDFDocumentPermissionsOwner status.
diff -ruN /Applications/Xcode_13.0.0-beta5.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PDFKit.framework/Headers/PDFThumbnailView.h /Applications/Xcode_13.0.0-rc.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PDFKit.framework/Headers/PDFThumbnailView.h
--- /Applications/Xcode_13.0.0-beta5.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PDFKit.framework/Headers/PDFThumbnailView.h	2021-08-07 05:23:02.000000000 -0400
+++ /Applications/Xcode_13.0.0-rc.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PDFKit.framework/Headers/PDFThumbnailView.h	2021-08-03 21:52:43.000000000 -0400
@@ -23,13 +23,17 @@
 
 #endif
 
-@class PDFView, PDFPage;
+@class PDFView, PDFPage, PDFThumbnailViewPrivate;
 
 // Notification when PDFDocument is modified.
 PDFKIT_EXTERN NSString* const PDFThumbnailViewDocumentEditedNotification PDFKIT_AVAILABLE(10_4, 11_0);
 
 PDFKIT_CLASS_AVAILABLE(10_5, 11_0)
 @interface PDFThumbnailView : PDFKitPlatformView <NSCoding>
+{
+@private
+    PDFThumbnailViewPrivate *_private;
+}
 
 // PDFView associated with the thumbnail view.
 @property (nonatomic, weak, nullable) PDFView *PDFView;
diff -ruN /Applications/Xcode_13.0.0-beta5.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PDFKit.framework/Headers/PDFView.h /Applications/Xcode_13.0.0-rc.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PDFKit.framework/Headers/PDFView.h
--- /Applications/Xcode_13.0.0-beta5.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PDFKit.framework/Headers/PDFView.h	2021-08-07 05:24:15.000000000 -0400
+++ /Applications/Xcode_13.0.0-rc.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PDFKit.framework/Headers/PDFView.h	2021-08-03 21:52:44.000000000 -0400
@@ -52,8 +52,6 @@
     kPDFIconArea =          (1UL << 6),
     kPDFPopupArea =         (1UL << 7),
     kPDFImageArea =         (1UL << 8),
-    
-    kPDFAnyArea =           NSIntegerMax
 };
 
 // Interpolation quality.
Clone this wiki locally