PageHeaderFooter
class PageHeaderFooter: PDFElement
A PDF page header and footer element
-
The header of the page
Declaration
Swift
let header: [PDFElement] -
The footer of the page
Declaration
Swift
let footer: [PDFElement] -
Init the page header and footer element
Declaration
Swift
init(header: [PDFElement], footer: [PDFElement] = [])Parameters
headerThe
PDFElementsfor the headerfooterThe
PDFElementsfor the header -
Draw the page header and footer elements
Declaration
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
-
Draw the header elements
Declaration
Swift
func drawHeader(rect: inout CGRect, calculationOnly: Bool, pageRect: CGRect)Parameters
rectThe available rectangle
calculationOnlyBool if only the Bounding Rect should be calculated
pageRectThe rect of the page
-
Draw the footer elements
Declaration
Swift
func drawFooter(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