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. QtPDF not availabel on mac?
QtWS25 Last Chance

QtPDF not availabel on mac?

Scheduled Pinned Locked Moved Unsolved General and Desktop
qtpdfmac
26 Posts 7 Posters 5.0k 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.
  • J Offline
    J Offline
    JoeCFD
    wrote on 14 May 2021, 20:10 last edited by
    #16

    can you run the example?
    qt-examples/Qt-5.15.2/pdf/pdfviewer

    no problem to run it on Ubuntu.

    Z 1 Reply Last reply 15 May 2021, 03:40
    0
    • J JoeCFD
      14 May 2021, 20:10

      can you run the example?
      qt-examples/Qt-5.15.2/pdf/pdfviewer

      no problem to run it on Ubuntu.

      Z Offline
      Z Offline
      zhenghan
      wrote on 15 May 2021, 03:40 last edited by
      #17

      @JoeCFD Thanks for your reply. I can't run the example with error "Unknown modules in Qt: pdf". It is wired why Qt can't find the module, because the Qt5Pdf.dll is in msvc2019_64/bin directory, and Qt5Pdf.lib in msvc2019_64/lib directory. But in msvc2019_64/include directory there is no subfolder named Qt5Pdf.

      1 Reply Last reply
      0
      • J Offline
        J Offline
        JoeCFD
        wrote on 16 May 2021, 16:55 last edited by
        #18

        You have to install this component
        https://wiki.qt.io/QtPDF_Build_Instructions

        Z 2 Replies Last reply 17 May 2021, 03:32
        0
        • J JoeCFD
          16 May 2021, 16:55

          You have to install this component
          https://wiki.qt.io/QtPDF_Build_Instructions

          Z Offline
          Z Offline
          zhenghan
          wrote on 17 May 2021, 03:32 last edited by
          #19

          @JoeCFD said in QtPDF not availabel on mac?:

          https://wiki.qt.io/QtPDF_Build_Instructions

          Thanks for your reply. I have complied this component. And it works.

          1 Reply Last reply
          0
          • J JoeCFD
            16 May 2021, 16:55

            You have to install this component
            https://wiki.qt.io/QtPDF_Build_Instructions

            Z Offline
            Z Offline
            zhenghan
            wrote on 17 May 2021, 05:43 last edited by
            #20

            @JoeCFD I want develop a pdf application in which I want to edit the pdf file, adding a digit signature in the pdf. What pdf library do you think is proper for the purpose?
            I have find PoDoFo, and poppler, QtPdf(seems can't modify pdf). Again thanks for your time.

            1 Reply Last reply
            0
            • J Offline
              J Offline
              JoeCFD
              wrote on 17 May 2021, 13:29 last edited by JoeCFD
              #21

              d30a723b-169f-4c0e-8390-6ec2f077b01e-image.png

              MuPDF is the best. PDFium(Qt) is second. XPDF(Poppler) is third. You choose the better one for your app. You need to pay attention to license issue.

              Z 1 Reply Last reply 18 May 2021, 02:51
              0
              • Z zhenghan
                14 May 2021, 17:23

                @artwaw Hi, sir. I have met the same problem. Did you solve it yet? I use qtcreator on windows, and I have a Qt5Pdf.dll in my bin directory. But when I use QT += pdf, I got the same error, Unknown modules in QT: pdf.

                A Offline
                A Offline
                artwaw
                wrote on 17 May 2021, 13:42 last edited by
                #22

                @zhenghan Hi, sorry for late reply - I just built it from source, signed and installed. Like you did, from what I see.

                For more information please re-read.

                Kind Regards,
                Artur

                Z 1 Reply Last reply 18 May 2021, 03:03
                0
                • D Offline
                  D Offline
                  DerReisende
                  wrote on 17 May 2021, 13:48 last edited by
                  #23

                  I am successfully using PoDoFo from vcpkg for manipulating PDF (merging files, adding text content ,etc) files in my Qt 6.1 cmake project. Adding digital signatures with it should be possible ( I have read some code for it in the library but I don't have a use-case currently).
                  Be sure to install the [fontconfig] version of podofo otherwise you will get unexpected crashes on windows when drawing text with fonts.
                  Coding with it is quite straightforward although the documentation could be better - but I am no fluent c++ coder.

                  Z 1 Reply Last reply 18 May 2021, 03:14
                  0
                  • J JoeCFD
                    17 May 2021, 13:29

                    d30a723b-169f-4c0e-8390-6ec2f077b01e-image.png

                    MuPDF is the best. PDFium(Qt) is second. XPDF(Poppler) is third. You choose the better one for your app. You need to pay attention to license issue.

                    Z Offline
                    Z Offline
                    zhenghan
                    wrote on 18 May 2021, 02:51 last edited by
                    #24

                    @JoeCFD Thanks for your advice. Very appreciate.

                    1 Reply Last reply
                    0
                    • A artwaw
                      17 May 2021, 13:42

                      @zhenghan Hi, sorry for late reply - I just built it from source, signed and installed. Like you did, from what I see.

                      Z Offline
                      Z Offline
                      zhenghan
                      wrote on 18 May 2021, 03:03 last edited by
                      #25

                      @artwaw Thank you.

                      1 Reply Last reply
                      0
                      • D DerReisende
                        17 May 2021, 13:48

                        I am successfully using PoDoFo from vcpkg for manipulating PDF (merging files, adding text content ,etc) files in my Qt 6.1 cmake project. Adding digital signatures with it should be possible ( I have read some code for it in the library but I don't have a use-case currently).
                        Be sure to install the [fontconfig] version of podofo otherwise you will get unexpected crashes on windows when drawing text with fonts.
                        Coding with it is quite straightforward although the documentation could be better - but I am no fluent c++ coder.

                        Z Offline
                        Z Offline
                        zhenghan
                        wrote on 18 May 2021, 03:14 last edited by
                        #26

                        @DerReisende Thank you. I will try it.

                        1 Reply Last reply
                        0

                        25/26

                        18 May 2021, 03:03

                        • Login

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