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?
Forum Updated to NodeBB v4.3 + New Features

QtPDF not availabel on mac?

Scheduled Pinned Locked Moved Unsolved General and Desktop
qtpdfmac
26 Posts 7 Posters 5.2k Views 3 Watching
  • 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.
  • A Offline
    A Offline
    artwaw
    wrote on 29 May 2020, 13:07 last edited by
    #1

    Good afternoon,
    I took it with great joy that Qt 5.15 introduced QtPdf module as a part of it, since I always had do compile it myself, sign, etc.

    But after the install when I open the project having my usual

    QT += pdf
    

    all I get is

    Project ERROR: Unknown module(s) in QT: pdf
    

    My whole module list for this project is:

    QT       += core gui network printsupport sql xml serialport
    
    greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
    
    macx: {
    QT +=  pdf 
    }
    

    I reinstalled the Qt even, framework files are present in the folder. I'd rather not try to overwrite them with manually compiled ones since it should work...
    What do I missed?

    Kind Regards
    Artur Wawrowski

    For more information please re-read.

    Kind Regards,
    Artur

    J 1 Reply Last reply 29 May 2020, 13:11
    0
    • A artwaw
      29 May 2020, 13:07

      Good afternoon,
      I took it with great joy that Qt 5.15 introduced QtPdf module as a part of it, since I always had do compile it myself, sign, etc.

      But after the install when I open the project having my usual

      QT += pdf
      

      all I get is

      Project ERROR: Unknown module(s) in QT: pdf
      

      My whole module list for this project is:

      QT       += core gui network printsupport sql xml serialport
      
      greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
      
      macx: {
      QT +=  pdf 
      }
      

      I reinstalled the Qt even, framework files are present in the folder. I'd rather not try to overwrite them with manually compiled ones since it should work...
      What do I missed?

      Kind Regards
      Artur Wawrowski

      J Offline
      J Offline
      J.Hilk
      Moderators
      wrote on 29 May 2020, 13:11 last edited by J.Hilk
      #2

      @artwaw correct me if I'm wrong here, but from what I understand you have to buy the modul for the annual fee of 50$

      https://marketplace.qt.io/collections/newest/products/qtpdf

      It's not automatically part of the framework download, but it's listed under gpl3 so you should still be able to compile it yourself.

      PS: Personally I think its a horrible idea to introduce paywall!


      Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


      Q: What's that?
      A: It's blue light.
      Q: What does it do?
      A: It turns blue.

      A 2 Replies Last reply 29 May 2020, 13:18
      1
      • J J.Hilk
        29 May 2020, 13:11

        @artwaw correct me if I'm wrong here, but from what I understand you have to buy the modul for the annual fee of 50$

        https://marketplace.qt.io/collections/newest/products/qtpdf

        It's not automatically part of the framework download, but it's listed under gpl3 so you should still be able to compile it yourself.

        PS: Personally I think its a horrible idea to introduce paywall!

        A Offline
        A Offline
        artwaw
        wrote on 29 May 2020, 13:18 last edited by
        #3

        @J-Hilk I am stunned, really.
        But - the extension in question is QML oriented (at least that's what I see in requirements). I use widgets.
        It's bad enough that I can't compile it myself under Windows (I use mingw), if they really expect me to pay for mac usage... Well, I'd rather keep compiling it myself.

        For more information please re-read.

        Kind Regards,
        Artur

        1 Reply Last reply
        0
        • J J.Hilk
          29 May 2020, 13:11

          @artwaw correct me if I'm wrong here, but from what I understand you have to buy the modul for the annual fee of 50$

          https://marketplace.qt.io/collections/newest/products/qtpdf

          It's not automatically part of the framework download, but it's listed under gpl3 so you should still be able to compile it yourself.

          PS: Personally I think its a horrible idea to introduce paywall!

          A Offline
          A Offline
          artwaw
          wrote on 29 May 2020, 13:36 last edited by
          #4

          @J-Hilk I checked that QtCharts are now also a pricey addon - but sample project revealed that the module can be freely used under Open Source licence I have, both macOS and Windows. I don't get it. At all.

          For more information please re-read.

          Kind Regards,
          Artur

          J 1 Reply Last reply 29 May 2020, 13:41
          0
          • A artwaw
            29 May 2020, 13:36

            @J-Hilk I checked that QtCharts are now also a pricey addon - but sample project revealed that the module can be freely used under Open Source licence I have, both macOS and Windows. I don't get it. At all.

            J Offline
            J Offline
            J.Hilk
            Moderators
            wrote on 29 May 2020, 13:41 last edited by
            #5

            @artwaw yep, not a fan either, the only thing it will lead to is a reduced user base -> less people who buy the license -> increased prices -> and the vicious cycle is in full motion.

            Those are not the only 2 modules, I know for a fact that the QML TreeView component will be pay only as well (for Qt5 at least) a view that is missing for 4 years now, I think, the quick controls 2 one at least


            Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


            Q: What's that?
            A: It's blue light.
            Q: What does it do?
            A: It turns blue.

            A 1 Reply Last reply 29 May 2020, 13:47
            1
            • J J.Hilk
              29 May 2020, 13:41

              @artwaw yep, not a fan either, the only thing it will lead to is a reduced user base -> less people who buy the license -> increased prices -> and the vicious cycle is in full motion.

              Those are not the only 2 modules, I know for a fact that the QML TreeView component will be pay only as well (for Qt5 at least) a view that is missing for 4 years now, I think, the quick controls 2 one at least

              A Offline
              A Offline
              artwaw
              wrote on 29 May 2020, 13:47 last edited by
              #6

              @J-Hilk I wholeheartedly agree with the direction it leads to as you described it.

              But I still don't know why the QtPDF doesn't work for me - is it because of the "add on" (but then again Charts work!) or because I missed something.
              For now I will just test if I can continue with manual compile process... Or try to use poppler or something (again, manual compile, feels like I am running linux in '90s). It's inconvenient, for not to use stronger phrase.

              For more information please re-read.

              Kind Regards,
              Artur

              1 Reply Last reply
              1
              • S Offline
                S Offline
                SimonSchroeder
                wrote on 2 Jun 2020, 06:10 last edited by
                #7

                @artwaw said in QtPDF not availabel on mac?:

                I checked that QtCharts are now also a pricey addon

                As far as I remember QtCharts has always been an add-on (or GPL). You really have to be careful with licenses. For commercial software you can use the LGPL-part of Qt. If you are using GPL-modules all your software needs to be under the GPL (meaning everyone who gets your software has also a right to get your source code). So, as long as your software is not GPL you cannot use either QtCharts or QtPDF. (Unless you pay for the commercial license.)

                A 1 Reply Last reply 2 Jun 2020, 11:24
                0
                • S SimonSchroeder
                  2 Jun 2020, 06:10

                  @artwaw said in QtPDF not availabel on mac?:

                  I checked that QtCharts are now also a pricey addon

                  As far as I remember QtCharts has always been an add-on (or GPL). You really have to be careful with licenses. For commercial software you can use the LGPL-part of Qt. If you are using GPL-modules all your software needs to be under the GPL (meaning everyone who gets your software has also a right to get your source code). So, as long as your software is not GPL you cannot use either QtCharts or QtPDF. (Unless you pay for the commercial license.)

                  A Offline
                  A Offline
                  artwaw
                  wrote on 2 Jun 2020, 11:24 last edited by
                  #8

                  @SimonSchroeder Thank you, I am aware of that.
                  My point is - assuming I am GPL user, which I am indeed - why is QtPDF not visible on Mac while QtCharts is?

                  For more information please re-read.

                  Kind Regards,
                  Artur

                  1 Reply Last reply
                  0
                  • A Offline
                    A Offline
                    artwaw
                    wrote on 2 Jun 2020, 18:11 last edited by
                    #9

                    So according to all the sources I could find QtPDF is commercial OR GPL. So it should work yet my installation can't find it. I am puzzled now.

                    For more information please re-read.

                    Kind Regards,
                    Artur

                    1 Reply Last reply
                    0
                    • B Offline
                      B Offline
                      Bonnie
                      wrote on 3 Jun 2020, 03:34 last edited by
                      #10

                      I haven't found that module in Windows, either.
                      Maybe it is not released in the installer since it is still in technology preview?

                      1 Reply Last reply
                      0
                      • S Offline
                        S Offline
                        SimonSchroeder
                        wrote on 3 Jun 2020, 06:21 last edited by
                        #11

                        After a quick search I've found that indeed it might still be in Tech Preview. Most notably I have found that for now it seems to be part of QtWebEngine. As far as I remember QtWebEngine needs to be installed separately when using the online installer.

                        I have also found build instruction for QtPDF: https://wiki.qt.io/QtPDF_Build_Instructions
                        Maybe this helps if it is not yet included in any installers.

                        A 1 Reply Last reply 3 Jun 2020, 20:26
                        1
                        • S SimonSchroeder
                          3 Jun 2020, 06:21

                          After a quick search I've found that indeed it might still be in Tech Preview. Most notably I have found that for now it seems to be part of QtWebEngine. As far as I remember QtWebEngine needs to be installed separately when using the online installer.

                          I have also found build instruction for QtPDF: https://wiki.qt.io/QtPDF_Build_Instructions
                          Maybe this helps if it is not yet included in any installers.

                          A Offline
                          A Offline
                          artwaw
                          wrote on 3 Jun 2020, 20:26 last edited by
                          #12

                          @SimonSchroeder QtPDF is included in stable 5.15.0 as a part of the QtWebEngine. I have that installed and as I wrote the .framework files are present on the disk. That's the whole reason for this post, files are there, Qt doesn't seem to "see" them.

                          For more information please re-read.

                          Kind Regards,
                          Artur

                          Z 1 Reply Last reply 14 May 2021, 17:23
                          0
                          • A artwaw
                            3 Jun 2020, 20:26

                            @SimonSchroeder QtPDF is included in stable 5.15.0 as a part of the QtWebEngine. I have that installed and as I wrote the .framework files are present on the disk. That's the whole reason for this post, files are there, Qt doesn't seem to "see" them.

                            Z Offline
                            Z Offline
                            zhenghan
                            wrote on 14 May 2021, 17:23 last edited by
                            #13

                            @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 1 Reply Last reply 17 May 2021, 13:42
                            0
                            • JoeCFDJ Offline
                              JoeCFDJ Offline
                              JoeCFD
                              wrote on 14 May 2021, 18:16 last edited by JoeCFD
                              #14

                              Use free poppler for pdf( under GPLv2 or GPLv3) . It is not hard to add it.
                              Qt uses PDFium. https://wiki.qt.io/Handling_PDF
                              Poppler seems even better than PDFium
                              https://hub.alfresco.com/t5/alfresco-content-services-blog/pdf-rendering-engine-performance-and-fidelity-comparison/ba-p/287618

                              1 Reply Last reply
                              0
                              • JoeCFDJ Offline
                                JoeCFDJ Offline
                                JoeCFD
                                wrote on 14 May 2021, 18:33 last edited by JoeCFD
                                #15

                                Qt PDF is available under both GPLv3 and LGPLv3.
                                https://marketplace.qt.io/products/qtpdf

                                1 Reply Last reply
                                0
                                • JoeCFDJ Offline
                                  JoeCFDJ 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
                                  • JoeCFDJ 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
                                    • JoeCFDJ Offline
                                      JoeCFDJ 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
                                      • JoeCFDJ 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
                                        • JoeCFDJ 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

                                          • Login

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