PSPDFImageSaveMode

Objective-C

enum PSPDFImageSaveMode {}

Swift

@frozen enum SaveMode : Int

Specifies how a PSPDFImageDocument should save its contents.

  • The changes made to a PSPDFImageDocument will be flattened into the original image, and no additional metadata will be added to the image to allow these changes to be editable when reopened with PSPDFImageDocument. This option will not significantly change the file size.

    Declaration

    Objective-C

    PSPDFImageSaveModeFlatten = 0

    Swift

    case flatten = 0
  • In addition to flattening all the changes to the original image, PSPDFImageDocument will store the original image along with the edits made as part of the image’s metadata, allowing for previous changes like annotations to remain editable when reopened. Using this option will more than double the file size, and will increase as more edits are made.

    Declaration

    Objective-C

    PSPDFImageSaveModeFlattenAndEmbed = 1

    Swift

    case flattenAndEmbed = 1