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

QPdfWriter incorrect text position and size

XMLWordPrintable

      When using QPdfWriter to create PDF files with QPainter, the text placement and sizing is done incorrectly, compared with the expected output as generated with using QPrinter. See example project attached, and screenshots/pdf outputs.

      Further, the lines generated with QPdfWriter seem to be problematic, too, since they're drawn alot thinner than when using QPrinter, and thus become almost invisible (see screenshot).

        1. TestPdfWriter.zip
          5 kB
        2. testPdf.zip
          78 kB
        3. printer.pdf
          89 kB
        4. pdfwriter-bug.tar.gz
          10 kB
        5. pdfwriter.pdf
          89 kB
        6. output-printer-screenshot.png
          output-printer-screenshot.png
          26 kB
        7. output-printer.pdf
          7 kB
        8. output-pdfwriter-screenshot.png
          output-pdfwriter-screenshot.png
          21 kB
        9. output-pdfwriter.pdf
          8 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            johnlayt John Layt
            dermanu Emanuel Eichhammer
            Votes:
            1 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes