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

QPDFWriter with set paper size creates wrong size PDF

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 5.1.1
    • 5.0.1, 5.1.0 Beta 1
    • GUI: Printing
    • None
    • Mac OS X 10.8.3, Linux, Qt 5.x
    • 3dde073269b059aa238f3cd104a10d2fdb90c350

    Description

      When using QPDFWriter in Qt 5.x with the setPageSize(QPrinter::Letter) function to set the page size, the page size is not correctly set to Letter, but rather to 1.06"x1.38", which I believe roughly corresponds to a paper size of A10. I have attached a small sample app which demonstrates this on my machine, simply click the create pdf button to generate a PDF showing this issue.

      Attachments

        1. qtbug31443.tar
          10 kB
        2. Test51Bugs.zip
          6 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            kleint Friedemann Kleint
            macavenger Israel Brewster
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes