PDFPageFormat

public enum PDFPageFormat : String, CaseIterable

Source for page sizes: https://www.papersizes.org All sizes are calculated using 72 points/inch

  • Page formats mostly used in the USA

    Declaration

    Swift

    case usHalfLetter = "us.half-letter"
  • Declaration

    Swift

    case usLetter = "us.letter"
  • Declaration

    Swift

    case usLegal = "us.legal"
  • Declaration

    Swift

    case usJuniorLegal = "us.junior-legal"
  • Declaration

    Swift

    case usLedger = "us.ledger"
  • Page formats according to the American National Standards Institute

    Declaration

    Swift

    case ansiA = "ansi.a"
  • Declaration

    Swift

    case ansiB = "ansi.b"
  • Declaration

    Swift

    case ansiC = "ansi.c"
  • Declaration

    Swift

    case ansiD = "ansi.d"
  • Declaration

    Swift

    case ansiE = "ansi.e"
  • a0

    A-Series of paper standard DIN 476 For more detail: https://en.wikipedia.org/wiki/Paper_size#A_series

    Declaration

    Swift

    case a0 = "a0"
  • a1

    Declaration

    Swift

    case a1 = "a1"
  • a2

    Declaration

    Swift

    case a2 = "a2"
  • a3

    Declaration

    Swift

    case a3 = "a3"
  • a4

    Declaration

    Swift

    case a4 = "a4"
  • a5

    Declaration

    Swift

    case a5 = "a5"
  • a6

    Declaration

    Swift

    case a6 = "a6"
  • a7

    Declaration

    Swift

    case a7 = "a7"
  • a8

    Declaration

    Swift

    case a8 = "a8"
  • a9

    Declaration

    Swift

    case a9 = "a9"
  • a10

    Declaration

    Swift

    case a10 = "a10"
  • b0

    B-Series is the geometric mean of the A-series For more detail: https://en.wikipedia.org/wiki/Paper_size#B_series

    Declaration

    Swift

    case b0 = "b0"
  • b1

    Declaration

    Swift

    case b1 = "b1"
  • b2

    Declaration

    Swift

    case b2 = "b2"
  • b3

    Declaration

    Swift

    case b3 = "b3"
  • b4

    Declaration

    Swift

    case b4 = "b4"
  • b5

    Declaration

    Swift

    case b5 = "b5"
  • b6

    Declaration

    Swift

    case b6 = "b6"
  • b7

    Declaration

    Swift

    case b7 = "b7"
  • b8

    Declaration

    Swift

    case b8 = "b8"
  • b9

    Declaration

    Swift

    case b9 = "b9"
  • b10

    Declaration

    Swift

    case b10 = "b10"
  • c0

    C-Series is ususally used for envelopes. Definition is written in ISO 269 For more detail: https://en.wikipedia.org/wiki/Paper_size#C_series

    Declaration

    Swift

    case c0 = "c0"
  • c1

    Declaration

    Swift

    case c1 = "c1"
  • c2

    Declaration

    Swift

    case c2 = "c2"
  • c3

    Declaration

    Swift

    case c3 = "c3"
  • c4

    Declaration

    Swift

    case c4 = "c4"
  • c5

    Declaration

    Swift

    case c5 = "c5"
  • c6

    Declaration

    Swift

    case c6 = "c6"
  • c7

    Declaration

    Swift

    case c7 = "c7"
  • c8

    Declaration

    Swift

    case c8 = "c8"
  • c9

    Declaration

    Swift

    case c9 = "c9"
  • c10

    Declaration

    Swift

    case c10 = "c10"
  • Size defined in constants

    Declaration

    Swift

    public var size: CGSize { get }
  • Swaps height and width to create a landscape format

    Declaration

    Swift

    public var landscapeSize: CGSize { get }
  • Name defined in constants

    Declaration

    Swift

    public var name: String { get }
  • Shorthand method to create a default PDFPageLayout based on the this formats size.

    Declaration

    Swift

    var layout: PDFPageLayout { get }
  • Returns the defined US names if this format is a US format. If it is not a US format, it will check other constants for correct name

    Declaration

    Swift

    var usName: String { get }
  • Returns the defined ANSI name if this format is a ANSI format. If it is not a ANSI format, it will check other constants for correct name

    Declaration

    Swift

    var ansiName: String { get }
  • Returns the defined A-Series name if this format is a A-Series format. If it is not a A-Series format, it will check other constants for correct name

    Declaration

    Swift

    var aName: String { get }
  • Returns the defined B-Series name if this format is a B-Series format. If it is not a B-Series format, it will check other constants for correct name

    Declaration

    Swift

    var bName: String { get }
  • Returns the defined C-Series name if this format is a C-Series format. If it is not a C-Series format, it will check other constants for correct name

    Declaration

    Swift

    var cName: String { get }
  • Returns the defined US paper size if this format is a US format. If it is not a US format, it will check other constants for correct size

    Declaration

    Swift

    var usSize: CGSize { get }
  • Returns the defined ANSI paper size if this format is a ANSI format. If it is not a ANSI format, it will check other constants for correct size

    Declaration

    Swift

    var ansiSize: CGSize { get }
  • Returns the defined A-Series paper size if this format is a A-Series format. If it is not a A-Series format, it will check other constants for correct size

    Declaration

    Swift

    var aSize: CGSize { get }
  • Returns the defined B-Series paper size if this format is a B-Series format. If it is not a B-Series format, it will check other constants for correct size

    Declaration

    Swift

    var bSize: CGSize { get }
  • Returns the defined C-Series paper size if this format is a C-Series format. If it is not a C-Series format, it will check other constants for correct size

    Declaration

    Swift

    var cSize: CGSize { get }