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

Printing result is stretched when orientation is landscape

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2: Important P2: Important
    • None
    • 5.13
    • WebEngine
    • 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;
      }
      

        1. out.pdf
          108 kB
          Szabolcs David
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            davidsz Szabolcs David
            davidsz Szabolcs David
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes