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)?
      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.