You are here

function PdfTemplate::Header in Views PDF 7.2

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

This method must be overriden, in the other case, some output is printed to the header.

File

./views_pdf_template.php, line 151
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

function Header() {
  if (!empty($this->views_header)) {
    $this
      ->writeHTML($this->views_header);
  }
}