PSPDFAnnotationSaveMode

Objective-C

enum PSPDFAnnotationSaveMode : NSInteger {}

Swift

@frozen enum AnnotationSaveMode : Int, @unchecked Sendable

Annotations can be saved in the PDF or alongside in an external file.

  • Saving will be disabled. When this setting is used, annotation editing UI will be disabled. Otherwise there would be data loss because the user could make edits that would then not be saved.

    Declaration

    Objective-C

    PSPDFAnnotationSaveModeDisabled

    Swift

    case disabled = 0
  • Will save to an external file. Uses save/loadAnnotationsWithError: in PSPDFAnnotationManager.

    Declaration

    Objective-C

    PSPDFAnnotationSaveModeExternalFile

    Swift

    case externalFile = 1
  • Will only save directly into the PDF.

    Declaration

    Objective-C

    PSPDFAnnotationSaveModeEmbedded

    Swift

    case embedded = 2
  • Tries to save into the PDF if the file is writable, else falls back to external file.

    Declaration

    Objective-C

    PSPDFAnnotationSaveModeEmbeddedWithExternalFileAsFallback

    Swift

    case embeddedWithExternalFileAsFallback = 3