note 48145 added to function.pdf-show-boxed
| From: | james at lightbox dot org | Date: | Mon, 13 Dec 2004 19:51:29 +0000 |
| Subject: | note 48145 added to function.pdf-show-boxed | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-81765@lists.php.net to get a copy of this message | ||
I'm using the following libpdf versions:
PDFlib GmbH Version 6.0.1
PECL Version 2.0.3
I found the parameter 'top' to be misleading. Since 0,0 is in the bottom left of the
page, the top parameter is actually the bottom left corner of the box you want.
using
top=72
left=72
puts the bottom left corner of the box 1 inch in from the left, and 1 inch up from the bottom.
so to make a 6.5"x3" box (with 1" page margins) at the BOTTOM of the page, you would
use:
top=72
left=72
width=468
height=216
The text would then start in the top-left corner of the defined box, which would be at (72,288)
(in 1" from the left and up 4" from the bottom)
----
Manual Page -- http://www.php.net/manual/en/function.pdf-show-boxed.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+48145
Delete -- http://master.php.net/manage/user-notes.php?action=delete+48145&report=yes
Reason: bad code -- http://master.php.net/manage/user-notes.php?action=delete+48145&report=yes&reason=bad+code
Reason: spam -- http://master.php.net/manage/user-notes.php?action=delete+48145&report=yes&reason=spam
Reason: useless example -- http://master.php.net/manage/user-notes.php?action=delete+48145&report=yes&reason=useless+example
Reason: contains commercial links -- http://master.php.net/manage/user-notes.php?action=delete+48145&report=yes&reason=contains+commercial+links
Reason: useless note -- http://master.php.net/manage/user-notes.php?action=delete+48145&report=yes&reason=useless+note
Reject -- http://master.php.net/manage/user-notes.php?action=reject+48145&report=yes
Search -- http://master.php.net/manage/user-notes.php