Details
-
Bug
-
Resolution: Fixed
-
P3: Somewhat important
-
5.15.10
-
-
b44f222db (dev), 21053b0b3 (6.5)
Description
When the scaling factor is smaller than 100%, the contents get smaller but the white space is not used.
See the actual result (qtbug106659-actualresult.pdf) and an **expected result (qtbug106659-expected-result.pdf) .
**The expected result was taken by Windows "Notepad" app.
"Microsoft Print to PDF" does not support scaling.
Tested with these PDF creators and the problem is reproducible with any of them.
bullZip : https://www.bullzip.com/products/pdf/info.php
PDFCreator : https://www.pdfforge.org/pdfcreator
Wondershare PDFelement : https://pdf.wondershare.net/
This used to work in Qt4.
How to reproduce
1. Use https://doc.qt.io/qt-6/qtwidgets-tutorials-notepad-example.html
2. File -> Open and choose any file ( e.g. notepad.cpp )
3. File -> Print ( If it's gray out, make sure "QT_PRINTSUPPORT_LIB" is defined )
4. Choose PDF printer, Press "Preference" -> "Advanced.." -> Scaling to e.g. 60%, and press Print