note 35248 added to function.cpdf-text
| From: | xerofun at rack1 dot php dot net | Date: | Mon, 25 Aug 2003 12:39:43 +0000 |
| Subject: | note 35248 added to function.cpdf-text | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-55035@lists.php.net to get a copy of this message | ||
Thanks to Michael for the addition, but there's still a small thing missing in his addition to
my patch.
After testing Michael's addition, I only got 0 as return value. Even for text that didn't
fit into the textbox. A few hours later I found out that an essential variable (the variable
"ret") is not really used at all.
So in order to make Michael's addition work, you have to add "ret = " in front of the
line "cpdf_textBox(pdf," within the function cpdf_textbox in cpdf.c. Afterwards the line
would look like this:
ret = cpdf_textBox(pdf,
At the following url there's a full patch against php 4.3.2 that can be applied with the patch
program from *inside* the php source directory (patch -p1 <cpdf_patch). It might also work for
newer versions. Hopefully this patch will be included in the main php distribution soon.
http://mpex.net/software/mirror/cpdf_patch
----
Manual Page -- http://www.php.net/manual/en/function.cpdf-text.php
Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+35248
Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+35248&report=yes
Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+35248&report=yes