PageBackgroundColor
class PageBackgroundColor: PDFElement
A PDF page background color element
-
The
NSColorfor the backgroundDeclaration
Swift
let color: NSColor -
Fill a page with a background color
Declaration
Swift
init(color: NSColor)Parameters
colorThe
NSColorfor 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
rectThe available rectangle
calculationOnlyBool if only the Bounding Rect should be calculated
pageRectThe page size of the PDF document
View on GitHub