Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt WebKit
  4. Force PDF to always download
Forum Updated to NodeBB v4.3 + New Features

Force PDF to always download

Scheduled Pinned Locked Moved Qt WebKit
1 Posts 1 Posters 782 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    johnlamericain
    wrote on last edited by
    #1

    Hi everyone,

    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:

    • https://bugreports.qt-project.org/browse/QTBUG-42588
    • https://bugreports.qt-project.org/browse/QTBUG-42589

    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.

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved