PDFPageLayout
public struct PDFPageLayout
extension PDFPageLayout: Equatable
Contains all relevant layout informations of a pdf document
-
Size of each page
Declaration
Swift
public var size: CGSize
-
Margins of each page.
header
: Top inset of pagefooter
: Bottom inset of pageleft
: Left inset of pageright
: Right inset of pageDeclaration
Swift
public var margin: EdgeInsets
-
Spaces between header, content and footer.
header
: Space between header and contentfooter
: Space between content and footerDeclaration
Swift
public var space: (header: CGFloat, footer: CGFloat)
-
Creates a new layout object using the given parameters.
Declaration
Swift
public init( size: CGSize = .zero, margin: EdgeInsets = .zero, space: (header: CGFloat, footer: CGFloat) = (0, 0) )
-
Returns a
CGRect
with a origin at zero and thesize
of the layout.Declaration
Swift
public var bounds: CGRect { get }
-
Shorthand access to layout width
Declaration
Swift
public var width: CGFloat { get }
-
Shorthand access to layout height
Declaration
Swift
public var height: CGFloat { get }
-
nodoc
Declaration
Swift
public static func == (lhs: PDFPageLayout, rhs: PDFPageLayout) -> Bool