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
isFullPageSee
isFullPagefor 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
leftSpace to left page edge
rightSpace to right page edge
topSpace to top page edge
bottomSpace to bottom page edge
-
Resets the margin of the group to the margin of the
layoutDeclaration
Swift
public func resetMargin()
View on GitHub
Install in Dash