-
Bug
-
Resolution: Fixed
-
P2: Important
-
None
-
5.13
-
None
After adding some margins and changing the orientation of printer:
printer.setPageMargins(QMarginsF(25, 60, 25, 60)); printer.setPageOrientation(QPageLayout::Landscape);
the result is stretched.
Another case, when the CSS of the web content has
@page {
size: letter landscape;
}
and the provided QPrinter has been configured to portrait, the result is similar.
Even worse case where the pages are not uniform:
@page :left {
size: landscape;
}
@page :right {
size: portrait;
}
| For Gerrit Dashboard: QTBUG-75092 | ||||||
|---|---|---|---|---|---|---|
| # | Subject | Branch | Project | Status | CR | V |
| 258814,2 | Fix printing of landscape orientation | 5.12 | qt/qtwebengine | Status: MERGED | +2 | 0 |
| 261706,6 | Workaround for CSS orientation issues | 5.13 | qt/qtwebengine | Status: MERGED | +2 | 0 |
| 277187,11 | Redo scale handling of pdf when printing | 5.13 | qt/qtwebengine | Status: MERGED | +2 | 0 |
| 279647,1 | Redo scale handling of pdf when printing | 5.13.2 | qt/qtwebengine | Status: ABANDONED | 0 | 0 |