/** * prepare HTML2PDF::$_subobj (used for create the sub HTML2PDF objects * * @access protected */ protected function _prepareSubObj() { $pdf = null; // create the sub object HTML2PDF::$_subobj = new HTML2PDF($this->_orientation, $this->_format, $this->_langue, $this->_unicode, $this->_encoding, array($this->_defaultLeft, $this->_defaultTop, $this->_defaultRight, $this->_defaultBottom)); // init HTML2PDF::$_subobj->setTestTdInOnePage($this->_testTdInOnepage); HTML2PDF::$_subobj->setTestIsImage($this->_testIsImage); HTML2PDF::$_subobj->setTestIsDeprecated($this->_testIsDeprecated); HTML2PDF::$_subobj->setDefaultFont($this->_defaultFont); HTML2PDF::$_subobj->parsingCss->css =& $this->parsingCss->css; HTML2PDF::$_subobj->parsingCss->cssKeys =& $this->parsingCss->cssKeys; // clone font from the original PDF HTML2PDF::$_subobj->pdf->cloneFontFrom($this->pdf); // remove the link to the parent HTML2PDF::$_subobj->parsingCss->setPdfParent($pdf); }