[PHP + PDFLib] PHP "streaming" of PDF files
| From: | Florent SOULIERE | Date: | Wed, 15 Nov 2000 21:44:08 +0000 |
| Subject: | [PHP + PDFLib] PHP "streaming" of PDF files | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-25528@lists.php.net to get a copy of this message | ||
Hi,
My problem is quite strange, and nobody seems to talk about this, both at
php.net and pdflib.com.
I use the latest public release of PHP, and PDFLib 3.0.2.
All that I want is to generate PDF files "on the fly" using these tools. As
the compilation process succeeded, I tried to test the really simple
sample file given in the PHP doc ("Times Roman outlined").
The problem is: when I use the getpdf.php file, IE 5 loads the Acrobat
Reader AcriveX plugin, but the frame remains blank (no Acro' toolbar). So I
tried to use the fpassthru and readfile functions to transmit a few other
PDF files I had (manuals, licenses, tech docs)... and it worked. On the
other hand, when I store the PDFLib-generated file locally (using HTTP
transmition), Reader reads the sample PDF file successfully.
So, thank you in advance if you can help.
Here is a few other details : I tried both Zlib and no-Zlib support for PDFLib,
but it always fails. One stranger thing is that the sample file generated by
PDFLib's "make test" works fine with fpassthru/readfile functions.
Finally, when a "real" Acrobat Reader session is active on the same
machine, it stalles (as if there was a kind of infinite loop).
--
Florent SOULIERE.
florent.souliere@free.fr