Re: [PHP] Re: header() function for displaying an opened PDF document.
From: Scott Fletcher (scott_at_abcoa.com)
Date: 10/14/03
- Next message: David T-G: "Re: [PHP] where is my session data on my new server?"
- Previous message: Zerof: "Re: [PHP] where is my session data on my new server?"
- In reply to: Chris Hayes: "Re: [PHP] Re: header() function for displaying an opened PDF document."
- Next in thread: Scott Fletcher: "Re: [PHP] Re: header() function for displaying an opened PDF document."
- Reply: Scott Fletcher: "Re: [PHP] Re: header() function for displaying an opened PDF document."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
To: php-general@lists.php.net Date: Tue, 14 Oct 2003 09:53:06 -0400
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'.
- Next message: David T-G: "Re: [PHP] where is my session data on my new server?"
- Previous message: Zerof: "Re: [PHP] where is my session data on my new server?"
- In reply to: Chris Hayes: "Re: [PHP] Re: header() function for displaying an opened PDF document."
- Next in thread: Scott Fletcher: "Re: [PHP] Re: header() function for displaying an opened PDF document."
- Reply: Scott Fletcher: "Re: [PHP] Re: header() function for displaying an opened PDF document."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|