PSPDFDocumentPermissions

enum PSPDFDocumentPermissions {}

A set of flags specifying which operations shall be permitted when the document is opened with user access.

  • Undocumented

    Declaration

    Objective-C

    enum PSPDFDocumentPermissions {}
  • Print the document. See also print_high_quality (Security handlers of revision 3 or greater)

    Declaration

    Objective-C

    PSPDFDocumentPermissionsPrinting = 1 << 0

    Swift

    static var printing: PSPDFDocumentPermissions { get }
  • Modify the contents of the document

    Declaration

    Objective-C

    PSPDFDocumentPermissionsModification = 1 << 1

    Swift

    static var modification: PSPDFDocumentPermissions { get }
  • (Security handlers of revision 2) Copy or otherwise extract text and graphics from the document, including extracting text and graphics (in support of accessibility to users with disabilities or for other purposes). (Security handlers of revision 3 or greater) Copy or otherwise extract text and graphics from the document by operations other than that controlled by bit 10.

    Declaration

    Objective-C

    PSPDFDocumentPermissionsExtract = 1 << 2

    Swift

    static var extract: PSPDFDocumentPermissions { get }
  • Add or modify text annotations, fill in interactive form fields, and, if bit 4 is also set, create or modify interactive form fields (including signature fields).

    Declaration

    Objective-C

    PSPDFDocumentPermissionsAnnotationsAndForms = 1 << 3

    Swift

    static var annotationsAndForms: PSPDFDocumentPermissions { get }
  • (Security handlers of revision 3 or greater) Fill in existing interactive form fields (including signature fields), even if bit 6 is clear.

    Declaration

    Objective-C

    PSPDFDocumentPermissionsFillForms = 1 << 4

    Swift

    static var fillForms: PSPDFDocumentPermissions { get }
  • (Security handlers of revision 3 or greater) Extract text and graphics (in support of accessibility to users with disabilities or for other purposes).

    Declaration

    Objective-C

    PSPDFDocumentPermissionsExtractAccessibility = 1 << 5

    Swift

    static var extractAccessibility: PSPDFDocumentPermissions { get }
  • (Security handlers of revision 3 or greater) Assemble the document (insert, rotate, or delete pages and create bookmarks or thumbnail images), even if bit 4 is clear.

    Declaration

    Objective-C

    PSPDFDocumentPermissionsAssemble = 1 << 6

    Swift

    static var assemble: PSPDFDocumentPermissions { get }
  • (Security handlers of revision 3 or greater) Print the document to a representation from which a faithful digital copy of the PDF content could be generated. When this bit is clear (and PSPDFDocumentPermissionsPrinting is set), printing is limited to a low-level representation of the appearance, possibly of degraded quality.

    Declaration

    Objective-C

    PSPDFDocumentPermissionsPrintHighQuality = 1 << 7

    Swift

    static var printHighQuality: PSPDFDocumentPermissions { get }