PDFPageFormat
public enum PDFPageFormat
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
-
Declaration
Swift
case usLetter
-
Declaration
Swift
case usLegal
-
Declaration
Swift
case usJuniorLegal
-
Declaration
Swift
case usLedger
-
Page formats according to the American National Standards Institute
Declaration
Swift
case ansiA
-
Declaration
Swift
case ansiB
-
Declaration
Swift
case ansiC
-
Declaration
Swift
case ansiD
-
Declaration
Swift
case ansiE
-
A-Series of paper standard DIN 476 For more detail: https://en.wikipedia.org/wiki/Paper_size#A_series
Declaration
Swift
case a0
-
Declaration
Swift
case a1
-
Declaration
Swift
case a2
-
Declaration
Swift
case a3
-
Declaration
Swift
case a4
-
Declaration
Swift
case a5
-
Declaration
Swift
case a6
-
Declaration
Swift
case a7
-
Declaration
Swift
case a8
-
Declaration
Swift
case a9
-
Declaration
Swift
case a10
-
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
-
Declaration
Swift
case b1
-
Declaration
Swift
case b2
-
Declaration
Swift
case b3
-
Declaration
Swift
case b4
-
Declaration
Swift
case b5
-
Declaration
Swift
case b6
-
Declaration
Swift
case b7
-
Declaration
Swift
case b8
-
Declaration
Swift
case b9
-
Declaration
Swift
case b10
-
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
-
Declaration
Swift
case c1
-
Declaration
Swift
case c2
-
Declaration
Swift
case c3
-
Declaration
Swift
case c4
-
Declaration
Swift
case c5
-
Declaration
Swift
case c6
-
Declaration
Swift
case c7
-
Declaration
Swift
case c8
-
Declaration
Swift
case c9
-
Declaration
Swift
case 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 }
-
Shorthand method to create a default
PDFPageLayout
based on the this formatssize
.Declaration
Swift
public var layout: PDFPageLayout { 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
public 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
public 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
public 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
public 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
public var cSize: CGSize { get }