You are here

public function PdfTemplate::setHeaderFooter in Views PDF 7.3

Same name and namespace in other branches
  1. 6 views_pdf_template.php \PdfTemplate::setHeaderFooter()
  2. 7 views_pdf_template.php \PdfTemplate::setHeaderFooter()
  3. 7.2 views_pdf_template.php \PdfTemplate::setHeaderFooter()

Sets the current header and footer of the page.

File

./views_pdf_template.php, line 1017
PDF Class to generate PDFs with native PHP. This class based on FPDF and FPDI.

Class

PdfTemplate
The main class to generate the PDF.

Code

public function setHeaderFooter($record, $options, $view) {
  $this->headerFooterData[$this
    ->getPage()] = $record;
  $this->headerFooterOptions = $options;
  $this->view = $view;
}