I know the first thing you are going to think is disable the PDF add-on in chrome... since we are the site providers, that isn't an option, we are not the client....
the problem right now is chrome is not rendering our PDF's correctly, actually it's not rending them at all... it's just showing black pages... every other PDF reader out there renders them correctly... (Something with the software that generates the PDF's, because most pdf's do render correctly in chrome, just not this packages (ahem SSRS)
I need a way to prevent chrome from rendering the PDF when a user clicks a link on our site.
There is one way of doing this by changing the MIME type reported by the web server for the files... normally it's reported as application/pdf if you change it to application/octet-stream chrome no longer auto opens it as a chrome rendered file... but it now downloads it and has it on the download bar... when a user clicks that it of course opens in chrome's rendering engine....... only when you click the drop down to select open in acrobat or system reader does it open in the right one...
are there ANY flags or anything a web dev can set outside the mime type (which we already did) that will make chrome just open a PDF in the native reader directly on a link click?
Question
neufuse Veteran
I know the first thing you are going to think is disable the PDF add-on in chrome... since we are the site providers, that isn't an option, we are not the client....
the problem right now is chrome is not rendering our PDF's correctly, actually it's not rending them at all... it's just showing black pages... every other PDF reader out there renders them correctly... (Something with the software that generates the PDF's, because most pdf's do render correctly in chrome, just not this packages (ahem SSRS)
I need a way to prevent chrome from rendering the PDF when a user clicks a link on our site.
There is one way of doing this by changing the MIME type reported by the web server for the files... normally it's reported as application/pdf if you change it to application/octet-stream chrome no longer auto opens it as a chrome rendered file... but it now downloads it and has it on the download bar... when a user clicks that it of course opens in chrome's rendering engine....... only when you click the drop down to select open in acrobat or system reader does it open in the right one...
are there ANY flags or anything a web dev can set outside the mime type (which we already did) that will make chrome just open a PDF in the native reader directly on a link click?
Link to comment
https://www.neowin.net/forum/topic/1275866-prevent-chrome-from-opening-pdf/Share on other sites
17 answers to this question
Recommended Posts