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

QPdfWriter drawText messes up text in pdf

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P2: Important
    • Resolution: Unresolved
    • Affects Version/s: 6.0.0
    • Fix Version/s: None
    • Component/s: PDF
    • Labels:
      None
    • Environment:
      macOs 10.14.6
      QtCreator 4.14.0
    • Platform/s:
      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
        2. main.qml
          0.1 kB
        3. pdfWriterBug.pro
          0.7 kB
        4. qml.qrc
          0.1 kB
        5. test_Qt_5_15_3.pdf
          5 kB
        6. test_Qt_6_0_0.pdf
          5 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            srutledg Shawn Rutledge
            Reporter:
            solutions_papillon Eric Lemire
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes