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

    header

    The PDFElements for the header

    footer

    The PDFElements for the header

  • Draw the page header and footer elements

    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

  • Draw the header elements

    Declaration

    Swift

    func drawHeader(rect: inout CGRect, calculationOnly: Bool, pageRect: CGRect)

    Parameters

    rect

    The available rectangle

    calculationOnly

    Bool if only the Bounding Rect should be calculated

    pageRect

    The rect of the page

  • Draw the footer elements

    Declaration

    Swift

    func drawFooter(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