I am trying to create a pdf viewer inside qt using Adobe Readers ActiveX, but it requires to install Adobe Reader, so is it possible without installing Adobe reader we can create pdf viewer
Asked
Active
Viewed 1.4k times
4
-
Which platform(s)? Is [Poppler](https://poppler.freedesktop.org/) an option -- it has integration layers for both `Qt4` and `Qt5`? – G.M. Jun 13 '17 at 12:13
-
yes i think Poppler is also one option but i don't know steps for Poppler. but i know the Adobe Readers steps its very simpale , but the problem is it is dependant. i need to run it independatly means only inside Qt – Dnyaneshwar Jun 13 '17 at 12:19
-
Well, if you follow the link I provided it will get you [here](https://people.freedesktop.org/~aacid/docs/qt5/) which has a very straightforward example. – G.M. Jun 13 '17 at 12:36
-
Thank you, but in this steps i am not able to include #include
**says no such file or directory** – Dnyaneshwar Jun 13 '17 at 12:45 -
Use your favorite search engine: https://wiki.qt.io/Handling_PDF – m7913d Jun 18 '17 at 18:49
-
You can use [Qt Web Engine](http://doc.qt.io/qt-5/webengine-examples.html), which allows you to use a web browser in your Qt program. It can also open PDF files. – Donald Duck Mar 07 '18 at 14:32
1 Answers
8
QtPdf module in the Qt Labs.
It comes with a Widgets-based PdfViewer example, which works out of the box.
It can be easily incorporated into any Qt app - We are incorporating it into one if our QML applications, by creating a wrapper.
Qt blog announcement here.

Mark Ch
- 2,840
- 1
- 19
- 31
-
@MahdiKhalili feel free to use whatever you like. qpdf was a bit big for what I needed... just displaying some pages – Mark Ch Aug 28 '19 at 09:58
-
1
-
-
it wont compile on windows vs17 for some kind of define sprintf used in code need to use vs15 for it – Mahdi Khalili Aug 28 '19 at 12:06
-