Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QPrinter fail in save pdf with japanese characters
QtWS25 Last Chance

QPrinter fail in save pdf with japanese characters

Scheduled Pinned Locked Moved Unsolved General and Desktop
11 Posts 3 Posters 1.3k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • ? Offline
    ? Offline
    A Former User
    wrote on last edited by
    #2

    Hi! Just tested it with Qt 5.7.1, and it works as expected. With what Qt version doesn't it work for you?

    1 Reply Last reply
    0
    • deleted57D Offline
      deleted57D Offline
      deleted57
      wrote on last edited by
      #3

      Hi

      Thank you for your fast reply. I recently moved to new 5.8 and started to see the problem...

      ? 1 Reply Last reply
      0
      • deleted57D deleted57

        Hi

        Thank you for your fast reply. I recently moved to new 5.8 and started to see the problem...

        ? Offline
        ? Offline
        A Former User
        wrote on last edited by
        #4

        @Suppaman Okay. I don't have 5.8 at hand right now, but I will test it tomorrow.

        1 Reply Last reply
        0
        • deleted57D Offline
          deleted57D Offline
          deleted57
          wrote on last edited by
          #5

          @Wieland As already said you don't need to develop a specific software for make this test, the standard Qt "Text Editor" example show same problem as described. My platform is Windows 10, I'll try to test in different platform in the meanwhile.

          the_T 1 Reply Last reply
          0
          • deleted57D deleted57

            @Wieland As already said you don't need to develop a specific software for make this test, the standard Qt "Text Editor" example show same problem as described. My platform is Windows 10, I'll try to test in different platform in the meanwhile.

            the_T Offline
            the_T Offline
            the_
            wrote on last edited by
            #6

            @Suppaman

            I have tried your example with Qt5.8.0 on Archlinux without any problems.

            alt text

            maybe it is a font issue?

            -- No support in PM --

            1 Reply Last reply
            0
            • deleted57D Offline
              deleted57D Offline
              deleted57
              wrote on last edited by
              #7

              Tested also on Windows 7 (the Qt "text edit" example) and same problem. The strange thing is if I remove the

              Printer.setOutputFormat(QPrinter::PdfFormat);
              

              line, that's mean paint on the printer, it work as expected and japanese characters are printed correctly.

              the_T 1 Reply Last reply
              0
              • deleted57D deleted57

                Tested also on Windows 7 (the Qt "text edit" example) and same problem. The strange thing is if I remove the

                Printer.setOutputFormat(QPrinter::PdfFormat);
                

                line, that's mean paint on the printer, it work as expected and japanese characters are printed correctly.

                the_T Offline
                the_T Offline
                the_
                wrote on last edited by
                #8

                @Suppaman

                Are you using any font that maybe does not support japanese?

                -- No support in PM --

                1 Reply Last reply
                0
                • deleted57D Offline
                  deleted57D Offline
                  deleted57
                  wrote on last edited by
                  #9

                  I set the same font that correctly paint japanese into the printer. I'm checking into Qt sources if pdf creation work in some different way...

                  1 Reply Last reply
                  0
                  • deleted57D Offline
                    deleted57D Offline
                    deleted57
                    wrote on last edited by
                    #10

                    Seem someother alredy report this bug: https://bugreports.qt.io/browse/QTBUG-58692

                    1 Reply Last reply
                    0
                    • ? Offline
                      ? Offline
                      A Former User
                      wrote on last edited by
                      #11

                      On Windows 7, it fails for me, too.

                      1 Reply Last reply
                      0

                      • Login

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • Users
                      • Groups
                      • Search
                      • Get Qt Extensions
                      • Unsolved