Beispiel #1
0
 /**
  * Get the last absolute Y
  *
  * @return float y
  */
 protected function getLastAbsoluteY()
 {
     for ($k = count($this->table) - 1; $k >= 0; $k--) {
         if ($this->table[$k]['y'] && $this->table[$k]['position']) {
             return $this->table[$k]['y'];
         }
     }
     return $this->pdf->gettMargin();
 }
Beispiel #2
0
 /**
  * new page for the automatic Index, do not use this method. Only 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;
     }
 }