コード例 #1
0
ファイル: Html2Pdf.php プロジェクト: kamena/kdwp-invoice
 /**
  * prepare self::$_subobj (used for create the sub Html2Pdf objects
  *
  * @access protected
  */
 protected function _prepareSubObj()
 {
     $pdf = null;
     // create the sub object
     self::$_subobj = new Html2Pdf($this->_orientation, $this->_format, $this->_langue, $this->_unicode, $this->_encoding, array($this->_defaultLeft, $this->_defaultTop, $this->_defaultRight, $this->_defaultBottom));
     // init
     self::$_subobj->setTestTdInOnePage($this->_testTdInOnepage);
     self::$_subobj->setTestIsImage($this->_testIsImage);
     self::$_subobj->setDefaultFont($this->_defaultFont);
     self::$_subobj->parsingCss->css =& $this->parsingCss->css;
     self::$_subobj->parsingCss->cssKeys =& $this->parsingCss->cssKeys;
     self::$_subobj->extensions = $this->extensions;
     // clone font from the original PDF
     self::$_subobj->pdf->cloneFontFrom($this->pdf);
     // remove the link to the parent
     self::$_subobj->parsingCss->setPdfParent($pdf);
 }