Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PdfKit] Implement Xcode 16.0 beta 1-6 changes. #21034

Merged
merged 2 commits into from
Aug 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions src/pdfkit.cs
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,14 @@ public enum PdfAccessPermissions : ulong {
FormFieldEntry = (1uL << 7),
}

[Native]
[iOS (18, 0), Mac (15, 0), MacCatalyst (18, 0)]
enum PdfSelectionGranularity : ulong {
Character,
Word,
Line,
}

[MacCatalyst (13, 1)]
[Static]
interface PdfAppearanceCharacteristicsKeys {
Expand Down Expand Up @@ -1496,6 +1504,11 @@ interface PdfDocument : NSCopying {
#pragma warning disable 0618 // 'PdfPrintScalingMode' is obsolete: 'This type is not available on iOS.'
NSPrintOperation GetPrintOperation ([NullAllowed] NSPrintInfo printInfo, PdfPrintScalingMode scaleMode, bool doRotate);
#pragma warning restore

[Mac (15, 0), iOS (18, 0), MacCatalyst (18, 0)]
[Export ("selectionFromPage:atPoint:toPage:atPoint:withGranularity:")]
[return: NullAllowed]
PdfSelection GetSelection (PdfPage startPage, CGPoint startPoint, PdfPage endPage, CGPoint endPoint, PdfSelectionGranularity granularity);
}

/// <summary>Interface representing the required methods (if any) of the protocol <see cref="T:PdfKit.PdfDocumentDelegate" />.</summary>
Expand Down Expand Up @@ -2137,6 +2150,9 @@ interface PdfView :
[Export ("visiblePages")]
PdfPage [] VisiblePages { get; }

[Deprecated (PlatformName.MacOSX, 15, 0)]
[Deprecated (PlatformName.MacCatalyst, 18, 0)]
[Deprecated (PlatformName.iOS, 18, 0)]
[Export ("enableDataDetectors")]
bool EnableDataDetectors { get; set; }

Expand Down
5 changes: 5 additions & 0 deletions tests/cecil-tests/Documentation.KnownFailures.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16270,6 +16270,9 @@ F:PdfKit.PdfMarkupType.Underline
F:PdfKit.PdfPrintScalingMode.DownToFit
F:PdfKit.PdfPrintScalingMode.None
F:PdfKit.PdfPrintScalingMode.ToFit
F:PdfKit.PdfSelectionGranularity.Character
F:PdfKit.PdfSelectionGranularity.Line
F:PdfKit.PdfSelectionGranularity.Word
F:PdfKit.PdfTextAnnotationIconType.Comment
F:PdfKit.PdfTextAnnotationIconType.Help
F:PdfKit.PdfTextAnnotationIconType.Insert
Expand Down Expand Up @@ -43930,6 +43933,7 @@ M:PdfKit.PdfDocument.GetDocumentAttributes
M:PdfKit.PdfDocument.GetPage(System.IntPtr)
M:PdfKit.PdfDocument.GetPageIndex(PdfKit.PdfPage)
M:PdfKit.PdfDocument.GetPrintOperation(AppKit.NSPrintInfo,PdfKit.PdfPrintScalingMode,System.Boolean)
M:PdfKit.PdfDocument.GetSelection(PdfKit.PdfPage,CoreGraphics.CGPoint,PdfKit.PdfPage,CoreGraphics.CGPoint,PdfKit.PdfSelectionGranularity)
M:PdfKit.PdfDocument.GetSelection(PdfKit.PdfPage,CoreGraphics.CGPoint,PdfKit.PdfPage,CoreGraphics.CGPoint)
M:PdfKit.PdfDocument.GetSelection(PdfKit.PdfPage,System.IntPtr,PdfKit.PdfPage,System.IntPtr)
M:PdfKit.PdfDocument.InsertPage(PdfKit.PdfPage,System.IntPtr)
Expand Down Expand Up @@ -81901,6 +81905,7 @@ T:PdfKit.PdfLineStyle
T:PdfKit.PdfMarkupType
T:PdfKit.PdfPageImageInitializationOption
T:PdfKit.PdfPageImageInitializationOptionKeys
T:PdfKit.PdfSelectionGranularity
T:PdfKit.PdfTextAnnotationIconType
T:PdfKit.PdfThumbnailLayoutMode
T:PdfKit.PdfViewActionEventArgs
Expand Down

This file was deleted.

4 changes: 0 additions & 4 deletions tests/xtro-sharpie/api-annotations-dotnet/iOS-PDFKit.todo

This file was deleted.

4 changes: 0 additions & 4 deletions tests/xtro-sharpie/api-annotations-dotnet/macOS-PDFKit.todo

This file was deleted.

4 changes: 0 additions & 4 deletions tests/xtro-sharpie/iOS-PDFKit.todo

This file was deleted.

4 changes: 0 additions & 4 deletions tests/xtro-sharpie/macOS-PDFKit.todo

This file was deleted.

Loading