php - why can't I overlay text on the bottom part of the page using fpdfi? -
background: i'm developing application involves taking existing pdf form , overlaying text on top of it. pdf version 1.3. i'm using fpdfi class (written in php) can found here:
http://www.setasign.de/support/manuals/fpdi/
i using fpdfi extension of tcpdf class found here:
http://www.tcpdf.org/index.php
i use line of (php) code looks this:
$this->setxy(25, 250);$this->cell(0, 8.6, $data['my_data_to_overlay']);
where $this refers instance of fpdfi class, setxy function tells coordinates wish place text (x,y), , cell function tells text want displayed , how large , such. page height 279.4 (all units here in mm)
the problem:
if set y coordinate higher 250 (even @ 251), text placed on next page instead of near bottom of current page expected. other coordinates above line @ 250 display properly, @ top edge of page.
why can not overlay text near bottom of page? doing wrong?
also of note: margins page set 0 , headers , footers disabled.
disable auto page break calling fpdf::setautopagebreak false, or true 0 margin.
edit: using fpdf::setmargins
can set left, top , right margins, not bottom one. proper way specify bottom margin.
Comments
Post a Comment