/** * 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); }
/** * Restore the Y position (used after a span) * * @return void */ public function restorePosition() { if ($this->value['y'] == $this->pdf->getY()) { $this->pdf->setY($this->value['yc'], false); } }