<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Hey there!<br>
<br>
I have a problem with PyQt5 and QPrinter which seems to be related
to PyQt 5.11.3 or Qt 5.12. I’m running Manjaro Linux with python
3.7.2, pyqt5-common 5.11.3, python-pyqt5 5.11.3 and Qt5 at v5.12.0.<br>
<br>
I have a program which printed directly to a pdf-file in portrait-
or landscape-orientation using QPrinter. Everything worked perfectly
with PyQt5 v5.11.2 and Qt5 v5.11.<br>
But now, whitout any code-changes, I always get documents in format
"us-letter" in portrait-orientation.<br>
<br>
I have a minimal working-example and some pdf-files to illustrate
this here:<span style="color: rgb(18, 17, 18); font-family:
"IBM Plex Sans", "Noto Sans", Helvetica,
Arial, sans-serif; font-size: 15px; font-style: normal;
font-variant-ligatures: normal; font-variant-caps: normal;
font-weight: 400; letter-spacing: normal; orphans: 2; text-align:
start; text-indent: 0px; text-transform: none; white-space:
normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width:
0px; background-color: rgb(254, 254, 254); text-decoration-style:
initial; text-decoration-color: initial; display: inline
!important; float: none;"><span> </span></span><font
color="#000000"><a
href="https://www.dropbox.com/sh/feve6ubvylrko0x/AACC8W0hqEQWSu3t5zGdQI9ra?dl=0"
rel="nofollow noopener" style="background: rgb(254, 254, 254)
none repeat scroll 0% 0%; text-decoration: none; cursor:
pointer; overflow-wrap: break-word; font-family: "IBM Plex
Sans", "Noto Sans", Helvetica, Arial, sans-serif;
font-size: 15px; font-style: normal; font-variant-ligatures:
normal; font-variant-caps: normal; font-weight: 400;
letter-spacing: normal; text-align: start; text-indent: 0px;
text-transform: none; white-space: normal; word-spacing: 0px;
-webkit-text-stroke-width: 0px;" moz-do-not-send="true">https://www.dropbox.com/sh/feve6ubvylrko0x/AACC8W0hqEQWSu3t5zGdQI9ra?dl=0</a></font>
<br>
(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.)<br>
<br>
In my example script, I let python print the printer-settings and
they are correct, but the generated output is wrong.<br>
<br>
Can anybody confirm and reproduce this behaviour with my working
example? If this is not related to PyQt5, should I report a bug at
Qt5.12?<br>
<br>
Thank you!<br>
<br>
Regards,<br>
<br>
Sam Barkowski<br>
<br class="Apple-interchange-newline">
</body>
</html>