perldoc CGI says...
print $q->header(-type=>'image/gif',-expires=>'+3d');
So... try:
print header(-type=>'application/pdf'),$buffer;
If you're on a Winbloze box you might need to binmode the PDF file.
In reply to Re: Outputting PDF via CGI
by zengargoyle
in thread Outputting PDF via CGI
by George_Sherston
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |