in reply to
PDF::API2 script name instead of file name
Yes, I am writing the PDF to the browser. Here is how I am setting the header using CGI:
print CGI::header( -type => 'application/pdf',
-disposition => 'inline;filename=\"myfilename.pdf\"');
And here is how I set the "info" using PDF::API2:
%h = $pdf->info( 'Author' => "$username",
'Title' => "$ListTitle Donation Receipt $receiptno",
'CreationDate' => "D:$pdfyear$pdfmon$pdfday$pdfhour$pdfmin$pdfsec",
'Producer' => 'List Manager');
I am still no further ahead with this problem.
Comment on
Re: PDF::API2 script name instead of file name
Replies are listed 'Best First'.
Re^2: PDF::API2 script name instead of file name
by
Anonymous Monk
on Aug 16, 2009 at 07:41 UTC
Why are you inventing a header (Disposition)?
[reply]
Re^3: PDF::API2 script name instead of file name
by
Anonymous Monk
on Aug 17, 2009 at 16:34 UTC
After my post I saw that refs on the net to the usage of "-disposition" are wrong. But I also tried "-Content_disposition" and that did not work either.
Still perplexed.
[reply]
In Section
Seekers of Perl Wisdom