QtPDF not availabel on mac?
-
Qt PDF is available under both GPLv3 and LGPLv3.
https://marketplace.qt.io/products/qtpdf -
can you run the example?
qt-examples/Qt-5.15.2/pdf/pdfviewerno problem to run it on Ubuntu.
@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.
-
You have to install this component
https://wiki.qt.io/QtPDF_Build_Instructions -
You have to install this component
https://wiki.qt.io/QtPDF_Build_Instructions@JoeCFD said in QtPDF not availabel on mac?:
Thanks for your reply. I have complied this component. And it works.
-
You have to install this component
https://wiki.qt.io/QtPDF_Build_Instructions@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. -
@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.
-
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. -
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.
-
@zhenghan Hi, sorry for late reply - I just built it from source, signed and installed. Like you did, from what I see.
-
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.@DerReisende Thank you. I will try it.