Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to open and display a PDF file using Qt/C++?

Tags:

c++

pdf

qt

qt4

I am trying to open and read a PDF file using Qt, but there is no specific way to do that.

like image 817
Swarit Avatar asked Jun 07 '11 07:06

Swarit


1 Answers

I know the subject is a bit old, but... I found a really simple way to render PDFs in Qt via QtWebKit using pdf.js (http://mozilla.github.com/pdf.js/).

Here is my realization of the idea for Qt5 and the WebEngine: https://github.com/Archie3d/qpdf

like image 115
Archie Avatar answered Oct 06 '22 00:10

Archie