4

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

m7913d
  • 10,244
  • 7
  • 28
  • 56
Dnyaneshwar
  • 122
  • 1
  • 3
  • 11
  • 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 Answers1

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