CompressionMode

public struct CompressionMode : OptionSet

The mode of compression for a document.

  • Declaration

    Swift

    public let rawValue: Int32
  • Declaration

    Swift

    public init(rawValue: Int32)
  • No compression

    Declaration

    Swift

    public static let none: PDFDocument.CompressionMode
  • Compress the contents stream of the page.

    Declaration

    Swift

    public static let text: PDFDocument.CompressionMode
  • Compress the streams of the image objects.

    Declaration

    Swift

    public static let image: PDFDocument.CompressionMode
  • Other stream datas (fonts, cmaps and so on) are compressed.

    Declaration

    Swift

    public static let metadata: PDFDocument.CompressionMode
  • all

    All stream datas are compressed.

    Declaration

    Swift

    public static let all: PDFDocument.CompressionMode