in reply to Creating inline PDF?
From the CGI documentation regarding the use of -attachment:
Instead of displaying the page, some browsers will prompt the user to save it to diskSuggested fix: Remove the -attachment option.
There will be browsers that don't have the PDF reader extension properly configured (or set to always download): they will still have it downloaded.
I imagine you might want to suggest a name to the browser for if they choose to download it. I've always done it with path information, linking to the CGI script as: /cgi-bin/myscript.cgi/something.pdf, where myscript.cgi is of course the script itself. You can ignore the path info, no modifications are needed to your script.
-Thomas
"Excuse me for butting in, but I'm interrupt-driven..."
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Creating inline PDF?
by kennethk (Abbot) on May 12, 2015 at 01:29 UTC | |
by thomas895 (Deacon) on May 12, 2015 at 03:21 UTC | |
by afoken (Chancellor) on May 12, 2015 at 08:52 UTC | |
by thomas895 (Deacon) on May 13, 2015 at 01:15 UTC | |
by afoken (Chancellor) on May 13, 2015 at 06:21 UTC |