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

REG->5.12? Qt5.12 ignores settings for QPrinter and always produces PDF-documents in format: "US-Letter" portrait

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Not Evaluated
    • 5.12.1
    • 5.12
    • GUI: Printing
    • None
    • Manjaro Linux, Kernel 4.20, Qt5.12, PySide 5.12.0, PyQt5 5.12.0
    • Linux/Wayland, Linux/X11
    • 81c3c66bb44c98b29a0181450ffa38a1c1fa06d9

    Description

      I have a program which printed directly to a pdf-file in portrait- or landscape-orientation using QPrinter. Everything worked perfectly with PySide2 v5.11(also with PyQt5 v5.11.2) and Qt5 v5.11.2.
      But now, after update to Qt5.12 and PySide2 v5.12 (or pyqt5.11.3), whitout any code-changes, I always get documents in format "us-letter" in portrait-orientation.

      I have a minimal working-example and some pdf-files to illustrate this here: https://www.dropbox.com/sh/feve6ubvy...5zGdQI9ra?dl=0
      (I had to remove names in two of the documents with LibreOffice Draw. Thus, the specs say that they are generated by LibreOffice instead of Qt5.12.)

      In my example scripts, I let python print the printer-settings and they are correct, but the generated output is wrong.

      Attachments

        1. demo.py
          7 kB
        2. demo2.py
          7 kB
        3. pyside917.py
          7 kB
        4. qtbug73310_512.jpg
          qtbug73310_512.jpg
          77 kB
        5. qtbug73310.zip
          1 kB
        6. testfile.pdf
          7 kB

        Issue Links

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

          Activity

            People

              anrocha André De La Rocha (Inactive)
              barkowski Sam Barkowski
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes