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

QPdfWriter incorrect text position and size

    XMLWordPrintable

Details

    Description

      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).

      Attachments

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

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes