in reply to PDF::API2 script name instead of file name

Same question was answered in Perl CGI output in PDF, you want Content-Disposition
  • 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 17, 2009 at 16:30 UTC
    Right. I tried:

    print CGI::header( -type => 'application/pdf',
    -Content_disposition => 'inline;filename=\"myfilename.pdf\"')

    but that did not work either. Nor did "-Content-disposition" with a hyphen instead of an underscore.

    Still perplexed.
      While the header name may be Content_Disposition the parameter seems to be -content_disposition, at least as shown in the thread I refered to.