SaveOption

Swift

public enum SaveOption : Hashable

Save option convenience enum. See PDFDocumentSaveOption for additional details.

  • A SecurityOptions instance, specifies the security options to use when saving the document.

    Declaration

    Swift

    case security(SecurityOptions)
  • Document saving strategy.

    Declaration

    Swift

    case strategy(SaveStrategy)
  • Forces a full rewrite of the document. By default, a document is saved incrementally if possible. This means that only the changed parts of a document are appended while their previously persisted state is kept (but ignored). This is faster but uses increasingly more space over time. Forcing a rewrite means the whole document file is rewritten from scratch leaving out all the outdated and unused parts.

    Declaration

    Swift

    case forceSaving
  • Applies all redactions in the document and removes the content underneath them. Not passing this option means redactions are not applied, and redaction annotations will stay in the document.

    Declaration

    Swift

    case applyRedactions