Joomlatools Support Center

Force PDF to open in browser and not download

I have a DocMan menu that displays a category of documents:

https://www.hunterpanels.com/xci-wall-polyiso-products/xci-technical-resources/tech-topics

How can I force the pdf files to open in the browser rather than download?

Is it possible to use something like:

<meta name="content-disposition" content="inline; filename=*.pdf">

I'm confused! :-)

Lee

Answer

Posted 3 years ago by Johan Janssens Staff

Helllo Lee, it actually works the other way around, by default DOCman will allow the browser to open up the PDF file, the browser will do so if it's capable of this. It needs to have a build in PDF viewer.

In your case files are force downloaded. This is likely because you have the 'force download all files' option set to 'yes' in your menu item settings. If so please change it to 'no' and this should fix it.

There are 3 more comments in this ticket.
Subscribe or login to join the discussion!

Lee Tempest
23.04.16
Answered

System Information

2.1
3.5
n/a
n/a