OT: How to force pdf display, not download?
joe at actionline.com
joe at actionline.com
Fri Jun 9 12:06:16 MST 2017
How to force pdf display, not download?
I found this answer online, and added the code shown below.
It works with firefox, but not with chrome.
www.devside.net/wamp-server/forcing-a-pdf-or-doc-to-open-in-browser-rather-than-downloading
To force inline viewing of PDF files, edit the website’s HTTP
and HTTPS VirtualHost files, and inside the VirtualHost block
add in configuration:
<LocationMatch "\.(?i:pdf)$">
ForceType application/pdf
Header set Content-Disposition inline
</LocationMatch>
More information about the PLUG-discuss
mailing list