Esempio n. 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();
 }
Esempio n. 2
0
 /**
  * tag : END_LAST_PAGE
  * mode : OPEN
  *
  * @param  array $param
  * @return void
  */
 protected function _tag_open_END_LAST_PAGE($param)
 {
     $height = $this->parsingCss->ConvertToMM($param['end_height'], $this->pdf->getH() - $this->pdf->gettMargin() - $this->pdf->getbMargin());
     if ($height < $this->pdf->getH() - $this->pdf->gettMargin() - $this->pdf->getbMargin() && $this->pdf->getY() + $height >= $this->pdf->getH() - $this->pdf->getbMargin()) {
         $this->_setNewPage();
     }
     $this->parsingCss->save();
     $this->parsingCss->analyse('end_last_page', $param);
     $this->parsingCss->setPosition();
     $this->parsingCss->fontSet();
     $this->pdf->setY($this->pdf->getH() - $this->pdf->getbMargin() - $height);
 }