Background
class Background: PDFElement
A PDF background element
Fill a PDFElement
with a SWIFTColor
background
-
The
NSColor
for the backgroundDeclaration
Swift
let color: NSColor
-
The
PDFElement
to add on top of the backgroundDeclaration
Swift
let element: PDFElement
-
Init the background element
Declaration
Swift
init(color: NSColor, _ element: PDFElement)
Parameters
color
The
NSColor
for the backgroundelement
The
PDFElement
to add on top of the background -
Draw the background element
Declaration
Swift
func draw(rect: inout CGRect, calculationOnly: Bool, pageRect: CGRect)
Parameters
rect
The available rectangle
calculationOnly
Bool if only the Bounding Rect should be calculated
pageRect
The page size of the PDF document