__construct() public method

Constructs PDF and configures standard parameters.
public __construct ( string $orientation = 'P', string $unit = 'mm', string $format = 'A4', boolean $unicode = true, string $encoding = 'UTF-8', boolean $diskcache = false, boolean $pdfa = false )
$orientation string page orientation
$unit string unit
$format string the format used for pages
$unicode boolean true means that the input text is unicode
$encoding string charset encoding; default is UTF-8.
$diskcache boolean if true reduce the RAM memory usage by caching temporary data on filesystem (slower).
$pdfa boolean If TRUE set the document to PDF/A mode.
Ejemplo n.º 1
0
 /**
  * Constructs PDF for schema export.
  *
  * @param string  $orientation page orientation
  * @param string  $unit        unit
  * @param string  $paper       the format used for pages
  * @param int     $pageNumber  schema page number that is being exported
  * @param boolean $withDoc     with document dictionary
  * @param string  $db          the database name
  *
  * @access public
  */
 public function __construct($orientation, $unit, $paper, $pageNumber, $withDoc, $db)
 {
     parent::__construct($orientation, $unit, $paper);
     $this->_pageNumber = $pageNumber;
     $this->_withDoc = $withDoc;
     $this->_db = $db;
 }