Skip to content

PDFKit macOS xcode14.0 rc

Israel Soto edited this page Sep 7, 2022 · 1 revision

#PDFKit.framework

diff -ruN /Applications/Xcode_14.0.0-beta6.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PDFKit.framework/Headers/PDFDocument.h /Applications/Xcode_14.0.0-rc.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PDFKit.framework/Headers/PDFDocument.h
--- /Applications/Xcode_14.0.0-beta6.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PDFKit.framework/Headers/PDFDocument.h	2022-08-05 12:41:42.000000000 -0500
+++ /Applications/Xcode_14.0.0-rc.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PDFKit.framework/Headers/PDFDocument.h	2022-08-03 21:08:35.000000000 -0500
@@ -95,12 +95,6 @@
                                                                                                                 // 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
 
-PDFKIT_EXTERN PDFDocumentWriteOption const PDFDocumentBurnInAnnotationsOption PDFKIT_AVAILABLE(13_0, 16_0);    // @YES to enable, disabled by default
-                                                                                                                // If enabled, annotations will be rendered into the content stream and NOT saved as annotations
-PDFKIT_EXTERN PDFDocumentWriteOption const PDFDocumentSaveTextFromOCROption PDFKIT_AVAILABLE(13_0, 16_0);      // @YES to enable, disabled by default
-                                                                                                                // If enabled, OCR will be performed on all pages on which it has not been done already and saved as invisible, but selectable. text
-
-
 // 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:
 //
diff -ruN /Applications/Xcode_14.0.0-beta6.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PDFKit.framework/Headers/PDFKit.apinotes /Applications/Xcode_14.0.0-rc.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PDFKit.framework/Headers/PDFKit.apinotes
--- /Applications/Xcode_14.0.0-beta6.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PDFKit.framework/Headers/PDFKit.apinotes	2022-08-01 09:05:24.000000000 -0500
+++ /Applications/Xcode_14.0.0-rc.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PDFKit.framework/Headers/PDFKit.apinotes	2022-02-12 06:42:57.000000000 -0600
@@ -19,9 +19,3 @@
       SwiftName: PDFDocumentWriteOption.ownerPassword
     - Name: PDFDocumentUserPasswordOption
       SwiftName: PDFDocumentWriteOption.userPassword
-    - Name: PDFDocumentAccessPermissionsOption
-      SwiftName: PDFDocumentWriteOption.accessPermissions
-    - Name: PDFDocumentBurnInAnnotationsOption
-      SwiftName: PDFDocumentWriteOption.burnInAnnotations
-    - Name: PDFDocumentSaveTextFromOCROption
-      SwiftName: PDFDocumentWriteOption.saveTextFromOCR
diff -ruN /Applications/Xcode_14.0.0-beta6.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PDFKit.framework/Headers/PDFKit.h /Applications/Xcode_14.0.0-rc.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PDFKit.framework/Headers/PDFKit.h
--- /Applications/Xcode_14.0.0-beta6.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PDFKit.framework/Headers/PDFKit.h	2022-08-01 09:09:16.000000000 -0500
+++ /Applications/Xcode_14.0.0-rc.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PDFKit.framework/Headers/PDFKit.h	2022-02-12 06:47:40.000000000 -0600
@@ -24,7 +24,6 @@
 #import <PDFKit/PDFSelection.h>
 #import <PDFKit/PDFThumbnailView.h>
 #import <PDFKit/PDFView.h>
-#import <PDFKit/PDFPageOverlayViewProvider.h>
 
 // Deprecated
 #import <PDFKit/PDFAnnotationButtonWidget.h>
diff -ruN /Applications/Xcode_14.0.0-beta6.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PDFKit.framework/Headers/PDFKitPlatform.h /Applications/Xcode_14.0.0-rc.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PDFKit.framework/Headers/PDFKitPlatform.h
--- /Applications/Xcode_14.0.0-beta6.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PDFKit.framework/Headers/PDFKitPlatform.h	2022-08-05 12:42:29.000000000 -0500
+++ /Applications/Xcode_14.0.0-rc.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PDFKit.framework/Headers/PDFKitPlatform.h	2022-08-03 21:08:35.000000000 -0500
@@ -64,7 +64,6 @@
 #define PDFKitPlatformButtonCell                                NSButtonCell
 #define PDFKitPlatformAccessibilityElement                      NSAccessibilityElement
 #define PDFKitResponder                                         NSResponder
-#define PDFKitTextContentType                                   NSTextContentType
 
 // Geometry types
 #define PDFPoint                                                NSPoint
@@ -77,7 +76,6 @@
 #define PDFSizeZero                                             NSZeroSize
 #define PDFRectZero                                             NSZeroRect
 #define PDFEdgeInsetsZero                                       NSEdgeInsetsZero
-#define PDFTrackingRunLoopMode                                  NSEventTrackingRunLoopMode
 
 #elif (TARGET_OS_SIMULATOR || TARGET_OS_IPHONE || TARGET_OS_MACCATALYST)
 
@@ -113,7 +111,6 @@
 #define PDFKitPlatformButtonCell                                UICollectionViewCell
 #define PDFKitPlatformAccessibilityElement                      UIAccessibilityElement
 #define PDFKitResponder                                         UIResponder
-#define PDFKitTextContentType                                   UITextContentType
 
 // Geometry types
 #define PDFPoint                                                CGPoint
@@ -126,7 +123,6 @@
 #define PDFSizeZero                                             CGSizeZero
 #define PDFRectZero                                             CGRectZero
 #define PDFEdgeInsetsZero                                       UIEdgeInsetsZero
-#define PDFTrackingRunLoopMode                             UITrackingRunLoopMode
 
 #else
 
diff -ruN /Applications/Xcode_14.0.0-beta6.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PDFKit.framework/Headers/PDFPage.h /Applications/Xcode_14.0.0-rc.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PDFKit.framework/Headers/PDFPage.h
--- /Applications/Xcode_14.0.0-beta6.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PDFKit.framework/Headers/PDFPage.h	2022-08-05 12:42:29.000000000 -0500
+++ /Applications/Xcode_14.0.0-rc.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PDFKit.framework/Headers/PDFPage.h	2022-08-03 21:08:35.000000000 -0500
@@ -26,8 +26,6 @@
     kPDFDisplayBoxArtBox = 4
 };
 
-typedef NSString * PDFPageImageInitializationOption NS_SWIFT_NAME(PDFPage.ImageInitializationOption) NS_TYPED_ENUM;
-
 PDFKIT_CLASS_AVAILABLE(10_4, 11_0)
 @interface PDFPage : NSObject <NSCopying>
 {
@@ -41,12 +39,8 @@
 // Note: -[PDFPage init] creates a new empty page with a media box set to (0.0, 0.0), [612.0, 792.0].
 - (instancetype)init NS_DESIGNATED_INITIALIZER;
 
-// Returns a PDFPage for the given image, using the given options
-- (nullable instancetype)initWithImage:(PDFKitPlatformImage *)image options:(NSDictionary<PDFPageImageInitializationOption, id>*)options
-    API_AVAILABLE(macos(13.0), ios(16.0)) NS_DESIGNATED_INITIALIZER;
-
-// Returns a PDFPage for the given image. Equivalent to initWithImage:options: with empty options
-- (nullable instancetype)initWithImage:(PDFKitPlatformImage *)image PDFKIT_AVAILABLE(10_5, 11_0);
+// Returns a PDFPage for the passed in image. An easy way to create a PDFPage from an image to add to a PDFDocument.
+- (nullable instancetype)initWithImage:(PDFKitPlatformImage *)image PDFKIT_AVAILABLE(10_5, 11_0) NS_DESIGNATED_INITIALIZER;
 
 // -------- accessors
 
@@ -156,6 +150,7 @@
 // NOTE: Versions of PDFKit before SnowLeopard did not return autorelease data for -[dataRepresentation]. You had to 
 // release the data yourself. Beginning with apps compiled on SnowLeopard the data returned is autoreleased.
 @property (nonatomic, readonly, nullable) NSData *dataRepresentation;
+
 @end
 
 #if defined( PDFKIT_PLATFORM_OSX )
@@ -183,22 +178,5 @@
 
 #endif
 
-// PDFPageImageInitializationOption values.
-
-// Value: CGRect as NSValue. If present, the page will have the given media box. Otherwise, the media box will be [0, 0, imageWidth, imageHeight].
-PDFKIT_EXTERN PDFPageImageInitializationOption const PDFPageImageInitializationOptionMediaBox NS_SWIFT_NAME(mediaBox)
-    API_AVAILABLE(macos(13.0), ios(16.0));
-
-// Value: int as NSNumber. If present, the image will be drawn on the page with the given rotation (in degrees counterclockwise), ignoring the value that would be returned by CGImageGetOrientation(). The value must be a multiple of 90 or an exception will be thrown.
-PDFKIT_EXTERN PDFPageImageInitializationOption const PDFPageImageInitializationOptionRotation NS_SWIFT_NAME(rotation)
-    API_AVAILABLE(macos(13.0), ios(16.0));
-
-// Value: BOOL as NSNumber. If true, and the image is smaller then the media box, the image will be upscaled to fit the media box, while maintaining aspect ratio.
-PDFKIT_EXTERN PDFPageImageInitializationOption const PDFPageImageInitializationOptionUpscaleIfSmaller NS_SWIFT_NAME(upscaleIfSmaller)
-    API_AVAILABLE(macos(13.0), ios(16.0));
-
-// Value double as NSNumber. The value must be in the range 0.0 to 1.0 or an exception will be thrown. A value of 0.0 implies that maximum compression is desired. A value of 1.0 implies that maximum quality is desired.
-PDFKIT_EXTERN PDFPageImageInitializationOption const PDFPageImageInitializationOptionCompressionQuality NS_SWIFT_NAME(compressionQuality)
-    API_AVAILABLE(macos(13.0), ios(16.0));
 
 NS_ASSUME_NONNULL_END
diff -ruN /Applications/Xcode_14.0.0-beta6.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PDFKit.framework/Headers/PDFPageOverlayViewProvider.h /Applications/Xcode_14.0.0-rc.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PDFKit.framework/Headers/PDFPageOverlayViewProvider.h
--- /Applications/Xcode_14.0.0-beta6.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PDFKit.framework/Headers/PDFPageOverlayViewProvider.h	2022-08-05 12:41:42.000000000 -0500
+++ /Applications/Xcode_14.0.0-rc.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PDFKit.framework/Headers/PDFPageOverlayViewProvider.h	1969-12-31 18:00:00.000000000 -0600
@@ -1,35 +0,0 @@
-//
-//  PDFPageOverlayViewProvider.h
-//  PDFKit
-//
-//  Copyright © 2022 Apple. All rights reserved.
-//
-
-#import <PDFKit/PDFKitPlatform.h>
-
-NS_ASSUME_NONNULL_BEGIN
-
-@class PDFPage, PDFView;
-
-API_AVAILABLE(macos(13.0), ios(16.0))
-@protocol PDFPageOverlayViewProvider <NSObject>
-
-@required
-
-// Asks the provider for a view to be displayed on top of the specified page.
-- (nullable PDFKitPlatformView*)pdfView:(PDFView*)view overlayViewForPage:(PDFPage*)page;
-
-@optional
-
-// Tells the provider that a view returned from `overlayViewForPage` has been added
-// to the view hierarchy and constraints have been set up. At this point, gesture failure
-// handlers may be set up with those of `pdfView`.
-- (void)pdfView:(PDFView*)pdfView willDisplayOverlayView:(PDFKitPlatformView*)overlayView forPage:(PDFPage*)page;
-
-// Tells the provider that a view returned from `overlayViewForPage` will be removed.
-// This can be used to restore whatever was done in `overlayView:wasAddedForPage`.
-- (void)pdfView:(PDFView*)pdfView willEndDisplayingOverlayView:(PDFKitPlatformView*)overlayView forPage:(PDFPage*)page;
-
-@end
-
-NS_ASSUME_NONNULL_END
diff -ruN /Applications/Xcode_14.0.0-beta6.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PDFKit.framework/Headers/PDFView.h /Applications/Xcode_14.0.0-rc.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PDFKit.framework/Headers/PDFView.h
--- /Applications/Xcode_14.0.0-beta6.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PDFKit.framework/Headers/PDFView.h	2022-08-05 12:41:42.000000000 -0500
+++ /Applications/Xcode_14.0.0-rc.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PDFKit.framework/Headers/PDFView.h	2022-08-03 21:08:36.000000000 -0500
@@ -18,7 +18,7 @@
 NS_ASSUME_NONNULL_BEGIN
 
 @class PDFAction, PDFActionRemoteGoTo, PDFDestination, PDFSelection, PDFViewPrivate;
-@protocol PDFViewDelegate, PDFPageOverlayViewProvider;
+@protocol PDFViewDelegate;
 
 // Display modes.
 PDFKIT_ENUM_AVAILABLE(10_4, 11_0)
@@ -84,7 +84,7 @@
 #if defined(PDFKIT_PLATFORM_OSX)
     < NSAnimationDelegate, NSMenuDelegate >
 #elif defined(PDFKIT_PLATFORM_IOS)
-    < UIGestureRecognizerDelegate, UIFindInteractionDelegate >
+    < UIGestureRecognizerDelegate >
 #endif
 {
 @private
@@ -195,9 +195,6 @@
 
 @property (nonatomic, weak, nullable) id< PDFViewDelegate > delegate;
 
-@property (nonatomic, weak, nullable) id<PDFPageOverlayViewProvider> pageOverlayViewProvider PDFKIT_AVAILABLE(13_0, 16_0);
-
-
 // -------- scaling
 
 // Method to get / set the current scaling on the displayed PDF document. Default is 1.0 (actual size).
@@ -360,23 +357,6 @@
 // temporary annotations and are not saved.
 @property (nonatomic) BOOL enableDataDetectors PDFKIT_AVAILABLE(10_6, 11_0);
 
-// If YES, page overlay views will be hit tested and therefore receive gestures. If NO, PDFView will receive gestures,
-// namely those for text selection.
-@property (nonatomic, getter=isInMarkupMode) BOOL inMarkupMode PDFKIT_AVAILABLE(13_0, 16_0);
-
-
-// -------- find interaction
-
-#if defined(PDFKIT_PLATFORM_IOS)
-
-/// If `findInteractionEnabled` is set to true, returns the receiver's built-in find interaction. Otherwise, nil.
-@property (nonatomic, readonly) UIFindInteraction *findInteraction PDFKIT_AVAILABLE(NA, 16_0);
-
-/// Enables the built-in find interaction.
-@property (nonatomic, readwrite, getter=isFindInteractionEnabled) BOOL findInteractionEnabled PDFKIT_AVAILABLE(NA, 16_0);
-
-#endif
-
 @end
 
 @protocol PDFViewDelegate< NSObject >
Clone this wiki locally