PDFMasterGroup
public class PDFMasterGroup : PDFGroup
Subclass of PDFGroup
with additional properties to configure page background content
Each instance of PDFDocument
can have one group set as the `PDFDocument/masterGroup
-
Flag if
true
, the render frame of the group is the as large as the page allows, otherwise only as large as its content objectsDeclaration
Swift
public var isFullPage: Bool
-
Creates a new master group with default values
Declaration
Swift
public init(isFullPage: Bool = false)
Parameters
isFullPage
See
isFullPage
for details -
Configures the space between the group and the edges of the page.
Declaration
Swift
public func setMargin(left: CGFloat? = nil, right: CGFloat? = nil, top: CGFloat? = nil, bottom: CGFloat? = nil)
Parameters
left
Space to left page edge
right
Space to right page edge
top
Space to top page edge
bottom
Space to bottom page edge
-
Resets the margin of the group to the margin of the
layout
Declaration
Swift
public func resetMargin()