Skip to content

Commit

Permalink
[PDFKit] Updating Xcode13 Beta 1 (#11987)
Browse files Browse the repository at this point in the history
* Initial changes xcode13 PDFKit beta 1

* adding to PdfDocumentWriteOptionKeys

* adding availability

Co-authored-by: tj_devel709 <antlambe@microsoft.com>
  • Loading branch information
tj-devel709 and tj_devel709 authored Jun 22, 2021
1 parent 0e07b98 commit 6898920
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 15 deletions.
33 changes: 33 additions & 0 deletions src/pdfkit.cs
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,20 @@ enum PdfAnnotationHighlightingMode {
Push,
}

[Native]
[iOS (15,0), Mac (12,0), MacCatalyst (15,0)]
public enum PdfAccessPermissions : ulong
{
LowQualityPrinting = (1uL << 0),
HighQualityPrinting = (1uL << 1),
DocumentChanges = (1uL << 2),
DocumentAssembly = (1uL << 3),
ContentCopying = (1uL << 4),
ContentAccessibility = (1uL << 5),
Commenting = (1uL << 6),
FormFieldEntry = (1uL << 7),
}

[Mac (10,13)]
[iOS (11,0)]
[Static]
Expand Down Expand Up @@ -411,6 +425,10 @@ interface PdfDocumentWriteOptionKeys {

[Field ("PDFDocumentUserPasswordOption", "+PDFKit")]
NSString UserPasswordKey { get; }

[iOS (15,0), Mac (12,0), MacCatalyst (15,0)]
[Field ("PDFDocumentAccessPermissionsOption", "+PDFKit")]
NSString AccessPermissionsKey { get; }
}

[Mac (10,13)]
Expand All @@ -420,6 +438,9 @@ interface PdfDocumentWriteOptions {

string OwnerPassword { get; set; }
string UserPassword { get; set; }

[iOS (15,0), Mac (12,0), MacCatalyst (15,0)]
string AccessPermissions { get; set; }
}

[Mac (10,13)]
Expand Down Expand Up @@ -1157,6 +1178,14 @@ interface PdfDocument : NSCopying {
[Notification]
NSString DidEndPageWriteNotification { get; }

[iOS (15,0), Mac (12,0), MacCatalyst (15,0)]
[Field ("PDFDocumentFoundSelectionKey")]
NSString FoundSelectionKey { get; }

[iOS (15,0), Mac (12,0), MacCatalyst (15,0)]
[Field ("PDFDocumentPageIndexKey")]
NSString PageIndexKey { get; }

// - (instancetype)init NS_DESIGNATED_INITIALIZER;
[Export ("init")]
[DesignatedInitializer]
Expand All @@ -1183,6 +1212,10 @@ interface PdfDocument : NSCopying {
[NullAllowed]
NSDictionary DocumentAttributes { get; set; }

[iOS (15,0), Mac (12,0), MacCatalyst (15,0)]
[Export ("accessPermissions")]
PdfAccessPermissions AccessPermissions { get; }

[Wrap ("new PdfDocumentAttributes (DocumentAttributes)")]
PdfDocumentAttributes GetDocumentAttributes ();

Expand Down
5 changes: 0 additions & 5 deletions tests/xtro-sharpie/MacCatalyst-PDFKit.todo

This file was deleted.

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

This file was deleted.

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

This file was deleted.

7 comments on commit 6898920

@vs-mobiletools-engineering-service2
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❌ [CI Build] Tests failed on Build ❌

Tests failed on Build.

API diff

✅ API Diff from stable

View API diff

API & Generator diff

ℹ️ API Diff (from PR only) (please review changes)
ℹ️ Generator Diff (please review changes)

Packages generated

View packages

Test results

1 tests failed, 220 tests passed.

Failed tests

  • monotouch-test/Mac [dotnet]/Debug (CoreCLR) [dotnet]: TimedOut (Execution timed out after 1200 seconds.
    Test run crashed)

Pipeline on Agent XAMBOT-1037.BigSur'
[PDFKit] Updating Xcode13 Beta 1 (#11987)

@vs-mobiletools-engineering-service2
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Tests were not ran (VSTS: device tests iOS). ⚠️

Results were skipped for this run due to provisioning problems Azure Devops. Please contact the bot administrator.

Pipeline on Agent
[PDFKit] Updating Xcode13 Beta 1 (#11987)

@vs-mobiletools-engineering-service2
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Tests passed on macOS Mac Catalina (10.15) ✅

Tests passed

All tests on macOS X Mac Catalina (10.15) passed.

Pipeline on Agent
[PDFKit] Updating Xcode13 Beta 1 (#11987)

@vs-mobiletools-engineering-service2
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Tests passed on macOS Mac Mojave (10.14) ✅

Tests passed

All tests on macOS X Mac Mojave (10.14) passed.

Pipeline on Agent
[PDFKit] Updating Xcode13 Beta 1 (#11987)

@vs-mobiletools-engineering-service2
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Tests passed on macOS Mac High Sierra (10.13) ✅

Tests passed

All tests on macOS X Mac High Sierra (10.13) passed.

Pipeline on Agent
[PDFKit] Updating Xcode13 Beta 1 (#11987)

@vs-mobiletools-engineering-service2
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Tests were not ran (VSTS: device tests tvOS). ⚠️

Results were skipped for this run due to provisioning problems Azure Devops. Please contact the bot administrator.

Pipeline on Agent
[PDFKit] Updating Xcode13 Beta 1 (#11987)

@vs-mobiletools-engineering-service2
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Tests were not ran (VSTS: device tests iOS32b). ⚠️

Results were skipped for this run due to provisioning problems Azure Devops. Please contact the bot administrator.

Pipeline on Agent
[PDFKit] Updating Xcode13 Beta 1 (#11987)

Please sign in to comment.