in reply to Re: Premature end of script headers
in thread Premature end of script headers

Plankton

print "Content-type: application/vnd.fdf\n\n";

This line (in theory) tells the browser that what is about to come is a fdf file for a application. On a computer that has Acrobat reader installed it should reconize it as such and fire up the reader in the web browser.
  • Comment on Re: Re: Premature end of script headers

Replies are listed 'Best First'.
Re: Re: Re: Premature end of script headers
by Plankton (Vicar) on Mar 29, 2004 at 21:56 UTC
    Well assuming there isn't some other problem couldn't you simply redirect to the URL ...

    http://www.mywebplace.com/fdf_pdfs/App.pdf

    ... after you created it?

    Plankton: 1% Evil, 99% Hot Gas.
      No, the PDF is already created, this script should make a FDF file that points to the PDF file. Acrobat would open the PDF and import the information from the FDF file to 'populate' the from with the information from the SQL db.