note 98674 added to function.pdf-show-boxed
| From: | JGriffiths at osu1 dot php dot net | Date: | Wed, 30 Jun 2010 01:49:08 +0000 |
| Subject: | note 98674 added to function.pdf-show-boxed | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-170575@lists.php.net to get a copy of this message | ||
As this is nowadays the poor/stingy man's alternative to the commercial PDFlib PDF_*_textflow()
functions, I thought it might be useful to point out something that isn't explicitly mentioned
here, but is helpful to determine a text box's height before committing it to the PDF:
This function returns the number of characters that would not fit in the prescribed dimensions.
Therefore, if, as noted below, the only feature, "blind", is passed as the last value to
this function, you can determine whether or not a certain height is sufficient for your text, and
increment as necessary, or decide to start a new page, without writing the text block to the PDF, by
checking whether or not the function returns 0.
This avoids the problem of the "texty" value becoming available only when the box has been
written, by which time it might too late!
----
Server IP: 69.147.83.197
Probable Submitter: 78.86.171.162
----
Manual Page -- http://www.php.net/manual/en/function.pdf-show-boxed.php
Edit -- https://master.php.net/note/edit/98674
Del: integrated -- https://master.php.net/note/delete/98674/integrated
Del: useless -- https://master.php.net/note/delete/98674/useless
Del: bad code -- https://master.php.net/note/delete/98674/bad+code
Del: spam -- https://master.php.net/note/delete/98674/spam
Del: non-english -- https://master.php.net/note/delete/98674/non-english
Del: in docs -- https://master.php.net/note/delete/98674/in+docs
Del: other reasons-- https://master.php.net/note/delete/98674
Reject -- https://master.php.net/note/reject/98674
Search -- https://master.php.net/manage/user-notes.php