PDFPageFormat
public enum PDFPageFormat : String, CaseIterable
Standardized paper formats, commonly used around the world.
All sizes are calculated using 72 points/inch
See also
Source-
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"
-
A-Series of paper standard DIN 476
See also
Wikipedia/Paper Size#A SeriesDeclaration
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
See also
Wikipedia/Paper Size#B SeriesDeclaration
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 }
-
Name defined in constants
Declaration
Swift
public var name: String { get }
-
Shorthand method to create a default
PDFPageLayout
based on the this formatssize
.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 }