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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Invalid
    • Affects Version/s: 5.13.0 Beta3
    • Fix Version/s: None
    • Component/s: WebEngine
    • Labels:
      None
    • Environment:
      Qt 5.13.0 Beta 3 VS 20017 64bit
    • Platform/s:
      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

              Assignee:
              qt_webengine_team Qt WebEngine Team
              Reporter:
              schlamar schlamar
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes