You are here

public function PdfTemplate::__construct in Views PDF 7.2

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

This method overrides the parent constructor method. this is need to reset the default values.

File

./views_pdf_template.php, line 111
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 __construct($orientation = 'P', $unit = 'mm', $format = 'A4', $unicode = TRUE, $encoding = 'UTF-8', $diskcache = FALSE) {
  parent::__construct($orientation, $unit, $format, $unicode, $encoding, $diskcache);
  $this->defaultOrientation = $orientation;
  $this->defaultFormat = $format;
}