PSPDFDocumentSharingFileFormatOptions

enum PSPDFDocumentSharingFileFormatOptions {}

The possible file formats that can be used for sharing documents.

  • Share as PDF document

    Declaration

    Objective-C

    PSPDFDocumentSharingFileFormatOptionPDF = 1 << 0

    Swift

    static var PDF: PSPDFDocumentSharingFileFormatOptions { get }
  • Offer to use the original file for sharing. See originalFile in PSPDFDocument. This can be used if, for example, the PDF is created from a converted Word document, and you’d like to offer the Word file for sharing.

    If enabled, neither page selection nor annotation options apply.

    Note

    If the document isn’t backed by a file, then it is written to a file temporarily.

    Declaration

    Objective-C

    PSPDFDocumentSharingFileFormatOptionOriginal = 1 << 1

    Swift

    static var original: PSPDFDocumentSharingFileFormatOptions { get }
  • Share the current PDF page as an image. For this option, page selection does not apply.

    When sharing a PSPDFImageDocument, the image is flattened is shared without embedded metadata. This reduces the image file size, but disallows further edits of embedded annotations.

    Declaration

    Objective-C

    PSPDFDocumentSharingFileFormatOptionImage = 1 << 2

    Swift

    static var image: PSPDFDocumentSharingFileFormatOptions { get }