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. output-pdfwriter-screenshot.png
          21 kB
          Emanuel Eichhammer
        2. output-pdfwriter.pdf
          8 kB
          Emanuel Eichhammer
        3. output-printer-screenshot.png
          26 kB
          Emanuel Eichhammer
        4. output-printer.pdf
          7 kB
          Emanuel Eichhammer
        5. pdfwriter-bug.tar.gz
          10 kB
          Emanuel Eichhammer
        6. pdfwriter.pdf
          89 kB
          Qt Support
        7. printer.pdf
          89 kB
          Qt Support
        8. testPdf.zip
          78 kB
          Qt Support
        9. TestPdfWriter.zip
          5 kB
          Jason Hihn
        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