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

Print to PDF resizes the content

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P2: Important
    • None
    • 5.10.1, 5.11.0, 5.11.1
    • WebEngine
    • None
    • Windows 10 x64 (Creators Update)
      MSVC17 15.6.7
    • Windows

    Description

      Hi all,

      I discovered a problem with the printToPdf function of the WebEngine.

      It resizes the content and I don't know, if it's a bug or a settings problem.

      I tried to setup the HTML via:

      @page {
        size: 21cm 29.7cm;
        margin: 30mm 45mm 30mm 45mm;
      }
      

      and

      <meta name="viewport" content="width=device-width, initial-scale=1.0">
      

      Both doesn't seem to have any effect.

      If you need further information, just ask.

      Best regards,
      Mike

      Attachments

        1. scaling.png
          scaling.png
          397 kB
        2. test.html
          73 kB
        3. testQt5.11.1.pdf
          103 kB
        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
            lachrymology Mike
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes