in reply to Re: Creating inline PDF?
in thread Creating inline PDF?
Instead of the -attachment option, the OP should use the content-disposition header field with a value of inline -- this will generally be respected by browsers. I more often use this to have browsers download the file with the name I want, but this use is within spec.
Those clients that don't respect content-disposition will, as you point out, guess what to do based upon the file extension. Rather than adding unnecessary misdirection of a fake path, why not just call your script myscript.pdf? The server should be interpreting the hash bang, and so who cares what it's called?
#11929 First ask yourself `How would I do this without a computer?' Then have the computer do it the same way.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Creating inline PDF?
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 |