PageBackgroundColor
class PageBackgroundColor: PDFElement
A PDF page background color element
-
The
NSColor
for the backgroundDeclaration
Swift
let color: NSColor
-
Fill a page with a background color
Declaration
Swift
init(color: NSColor)
Parameters
color
The
NSColor
for the background -
Draw the page background color element
Note
the rect value will be ignored and the full page size will be usedDeclaration
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