Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

Re: how to output to pdf from a perl script

by skeight (Novice)
on Jan 25, 2001 at 03:59 UTC ( #54159=note: print w/replies, xml ) Need Help??

in reply to how to output to pdf from a perl script

couldn't you also just do this at the beginning of the html:
print "Content-type: application/pdf\n\n";
correct me if I'm wrong but I'm pretty sure this would work


Replies are listed 'Best First'.
Re: Re: how to output to pdf from a perl script
by myocom (Deacon) on Jan 25, 2001 at 08:08 UTC

    You should certainly be including that in your HTTP header, but IE prefers to pay attention to the file extension. If you have a URL such as, and that CGI script generates a PDF file and sends it along, IE won't see it as a PDF, it will see it as a .CGI file.

      Ahhh, Now I see. Thanks for the input on that one. I wasn't aware of that...


Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://54159]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (3)
As of 2022-06-25 11:23 GMT
Find Nodes?
    Voting Booth?
    My most frequent journeys are powered by:

    Results (81 votes). Check out past polls.