rlg0613Le 20/03/2009 à 13:55
Hello all,
I have been struggling with this problem for a while. I am on a server running PHP 4.3.9 (I cannot change this) and trying to run html2pdf ver. 3.19. I have locally installed FPDF ver. 1.53 and modified 00_fpdf_codebar.class.php to require the earlier version. The result is a blank single page PDF file using a known good HTML template.
I have run a control on a different server running PHP ver. 5.1.2 with the box stock html2pdf using the same HTML template. This results in a valid PDF file. The vaid PDF file turns out to be 2 KB smaller than the blank one. When I uncompress both the blank and valid files using PDFTK I see that string lines are missing data. I don't really know the format, but I see the differences.
Here's an example of the uncompressed files lines:
Valid PDF: q 0.000 g BT 16.48 809.89 Td (Harry F. Anderson, PhD) Tj ET Q
Blank PDF: q 0.000 g BT Td (Harry F. Anderson, PhD) Tj ET Q
I changed the name in these examples so if the number data has to do with the original name that's why.
I'm hopping someone can point me to solving this vexing problem. Keep in mind I have no control over the PHP version that's running on the servers.
Thanks very much