Example #1
0
 /**
  * new page for the automatic Index, does not use thie method. Only HTML2PDF_myPdf could use it !!!!
  *
  * @param  &int $page
  * @return integer $oldPage
  */
 public function _INDEX_NewPage(&$page)
 {
     if ($page) {
         $oldPage = $this->pdf->getPage();
         $this->pdf->setPage($page);
         $this->pdf->setXY($this->_margeLeft, $this->_margeTop);
         $this->_maxH = 0;
         $page++;
         return $oldPage;
     } else {
         $this->_setNewPage();
         return null;
     }
 }
Example #2
0
 public function setJs($js = null)
 {
     $this->pdf->IncludeJs($js);
 }