Re: pdflib: unable to generate on the fly, need to write to file
| From: | Uwe Steinmann | Date: | Thu, 25 Jan 2001 19:08:54 +0000 |
| Subject: | Re: pdflib: unable to generate on the fly, need to write to file | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-36673@lists.php.net to get a copy of this message | ||
On Wed, Jan 24, 2001 at 11:21:28AM -0600, Dominic wrote:
> I have successfully installed pdflib with PHP4.0.4pl1 and all the
> necessary components. However, I don't know how to output a generated
> pdf to the browser without writing it to disk first and then reading it
> in. Below are the examples that I use.
>
> This example tries to directly output the pdf to the browser and doesn't
> work. The browser says "An error has occured while trying to use this
> document."
In case you use pdflib 3.03 check the pdflib page for a patch.
There is a bug if you create documents in memory.
Uwe
--
Uwe.Steinmann@fernuni-hagen.de
Tel: +2331 987 4528 Fax: +2331 987 375