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

        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