note 35248 deleted from function.cpdf-text by vincent
| From: | vincent@php.net | Date: | Mon, 25 Aug 2003 15:50:11 +0000 |
| Subject: | note 35248 deleted from function.cpdf-text by vincent | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-55043@lists.php.net to get a copy of this message | ||
Note Submitter: xerofun at gmx dot li
----
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