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

QML WebEngineView.printToPdf(): paper formats are wrong in the resulting document

    XMLWordPrintable

Details

    • Linux/Wayland, Windows
    • 199730bd4 (dev), 8f017c2d9 (6.7), 213a569e9 (6.6), b61e8a3d7 (6.5)

    Description

      Hello,

      as the titel describes: QML WebEngineView has the printToPdf() function. But the paper formats in the resulting documents are wrong. Exporting a document with QML WebEngineView via printToPdf(filename, WebEngineView.A4) results in a PDF document with the US-letter format, exporting A3 results in A5, while exporting A5 is resulting in A6 format.

      For me it seems the enumeration in the background might be filled with wrong data.

      There is a minimal example added.

       
      Thank you very much.

       

      main.qml

      main.cpp

      Attachments

        1. main.cpp
          0.5 kB
        2. main.qml
          1 kB
        For Gerrit Dashboard: QTBUG-120218
        # Subject Branch Project Status CR V

        Activity

          People

            mibrunin Michael Bruning
            gabrielboehme Gabriel Böhme
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes