You are here

public function PdfTemplate::setDefaultPageTemplate in Views PDF 7

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

File

./views_pdf_template.php, line 143
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 setDefaultPageTemplate($path, $key, $pageNumbering = 'main') {
  $this->defaultPageTemplateFiles[$key] = array(
    'path' => $path,
    'numbering' => $pageNumbering,
  );
}