Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-75818

PDF is not shown in QWebEngineView with PDFium (5.13 Beta)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • 5.13.0 Beta3
    • WebEngine
    • None
    • Qt 5.13.0 Beta 3 VS 20017 64bit
    • Windows

    Description

      According to https://bugreports.qt.io/browse/QTBUG-50556 WebEngine should show PDFs with PDFium since 5.13. However, when pointing a QWebEngineView to a PDF, only a white page is shown.

      Minimal Example Code:

      
      #include <QApplication>
      #include <QWebEngineView>
      
      int main(int argc, char *argv[])
      {
          QCoreApplication::setOrganizationName("XXX");
          QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
          QApplication app(argc, argv);
      
          QWebEngineView view;
          view.resize(800, 600);
          view.setContextMenuPolicy(Qt::NoContextMenu);
          view.setUrl(QUrl("https://mozilla.github.io/pdf.js/web/compressed.tracemonkey-pldi-09.pdf"));
          
          view.show();
          return app.exec();
      }
      

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              qt_webengine_team Qt WebEngine Team
              schlamar schlamar
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes