Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Force PDF to always download
johnlamericain last edited by
I would like my browser using webkit to always force any pdf to download instead of being show with a pdf viewer due to the following bugs with Adobe Reader:
I've tried to use a WebPlugin as well but without success due to this problem : https://bugreports.qt-project.org/browse/QTBUG-42595
So my only idea is to force the download and then open it in a specific viewer I have (http://mozilla.github.io/pdf.js/), but I would like your advice of the best way and place to force any pdf download. Of course not all pdf end with ".pdf". I should be able to rely on the mime type extension that I used in QWebPluginFactory but because I won't replace the content with a plugin due to the bug, I don't know where I should do it.
Thanks for your advices.