PSPDFDocumentSharingFileFormatOptions

Objective-C

enum PSPDFDocumentSharingFileFormatOptions : NSUInteger {}

Swift

struct FileFormatOptions : OptionSet, @unchecked Sendable

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: DocumentSharingConfiguration.FileFormatOptions { get }
  • Offer to use the original file for sharing. See originalFile in Document. 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: DocumentSharingConfiguration.FileFormatOptions { 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: DocumentSharingConfiguration.FileFormatOptions { get }