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

QPdfWriter drawText messes up text in pdf

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • 6.9.0
    • 6.0.0
    • GUI: Printing
    • None
    • macOs 10.14.6
      QtCreator 4.14.0
    • macOS

    Description

      All text is messed up when writing text on a Pdf.

      Following code works fine in Qt 5.15.3 but not in Qt 6.0.0.

      On 5.15.3, text is printed correctly.

      On 6.0.0, text is printed as random characters.

       

      Attachments

        1. main.cpp
          1 kB
          Eric Lemire
        2. main.qml
          0.1 kB
          Eric Lemire
        3. pdfWriterBug.pro
          0.7 kB
          Eric Lemire
        4. qml.qrc
          0.1 kB
          Eric Lemire
        5. test_Qt_5_15_3.pdf
          5 kB
          Eric Lemire
        6. test_Qt_6_0_0.pdf
          5 kB
          Eric Lemire
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            rlohning Robert Löhning
            solutions_papillon Eric Lemire
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes