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

From: Scott Fletcher (scott_at_abcoa.com)
Date: 10/14/03


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'.



Relevant Pages

  • Re: [PHP] web shot script
    ... As long as Ghostscript and Imagemagick are installed on the server, ... Although, is it possible to have a continuous length PDF, or does it only ... renderer using PHP, and then using that to take a screenshot. ... Subject: web shot script ...
    (php.general)
  • PHP Safe Mode Filesystem Circumvention Problem
    ... UNIX, Microsoft Windows, any platforms on which PHP is available. ... PHP includes a commonly used feature known as Safe Mode. ... the safe_mode-enabled web server. ... Go Beyond PARTIAL Security: FREE White Paper ...
    (NT-Bugtraq)
  • check if PDF file is valid?
    ... I'm using PHP 4.4.4 but can upgrade if necessary. ... file on my server, is there a way I can check if that file is of a PDF ...
    (comp.lang.php)
  • PHP Safe Mode Filesystem Circumvention Problem
    ... Platform: UNIX, Microsoft Windows, any platforms on which PHP is available. ... PHP includes a commonly used feature known as Safe Mode. ... the safe_mode-enabled web server. ...
    (Bugtraq)
  • Sending PDF as output
    ... I have a pdf file on the server. ... following PHP code. ... I've never tried this with PHP. ...
    (comp.lang.php)