Re: Re: header() function for displaying an opened PDF document.

From: Date: Tue, 14 Oct 2003 13:53:06 +0000
Subject: Re: Re: header() function for displaying an opened PDF document.
References: 1 2 3 4 5 6  Groups: php.general 
Request: Send a blank email to php-general+get-166063@lists.php.net to get a copy of this message
I'm using the library from www.fpdf.org. I currently using the method on storing the file to the server because of two features. One so I can have php script to use the email to pick up the file and send it to my boss. Two, an optional option to view the billing invoice. I am beginning to think that it might not be a browser problem after all. But something with the fpdf library. One way to test my theory is to grab a working pdf file on my machine and put it on the server, have php point to it and see if it can be display without a problem. If there's problem then it had to do with the poor scripting I made on the php header. Right now, I'm thinking of using hte HTML conversion to PDF feature. I haven't found this feature on the Internet until recently when I saw an earlier PHP newsgroup post yesterday. The reason is because it's quicker that way, I'm trying to finish the project so I can leave my job. So, I would like to make this project be simpilier for any future hired web programmer. Scott F. "Chris Hayes" <chayes@antenna.nl> wrote in message news:6.0.0.22.0.20031014145612.02ab8ec0@pop4.antenna.nl... > > It might help to have a peek at how the php Pdf libraries are doing this > (www.php.net/pdflib, fpdf.org, www.ros.co.nz/pdf) . There are a lot > of things to worry about with pdf, not the least the fact that older > acrobat readers will give plenty of errors when the page is not send fast > enough and many other reasons. > The safest workaround might be to save the pdf on the server, and then use > headers to tell the browser where to find it. > > > At 14:55 14-10-03, you wrote: > >Well, now, I get an unknown file type. I have already specified the > > > > > "Scott Fletcher" <scott@abcoa.com> wrote in message > > > > news:20031013210743.86299.qmail@pb1.pair.com... > > > > > > I seem to be having problem with sending the PDF document to the > > browser to > > > > > > be open on screen. I kept getting the error message, it say > > 'Windows cannot open this file'.

« previous php.general (#166063) next »