[PHP] [PHP + PDFLib] PHP "streaming" of PDF files From: Florent SOULIERE (florent.souliere <email protected>)
Date: 11/15/00

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 <email protected>

-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe <email protected> For additional commands, e-mail: php-general-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>