Implementing a custom PDF viewer
-
HI All
I need PDF viewer for UNIX .
This viewer must get pdf file and page ( or line ) number , or word and scroll to corresponding page.
(In last option I mean viewer must find the page with passed word and scroll to this page.)Questions :
-Is it possible to create such widget in Qt without third-party libs ?
-What external viewer allows to solve this task?Thanks.
-
[quote author="zerg2011" date="1344936267"]-Is it possible to create such widget in Qt without third-party libs ?[/quote]
Yes, absolutely. But don't underestimate the PDF standard. Implementing a PDF renderer from scratch that supports a reasonable portion of the standard is a multi-year project and only for experienced programmer(s).[quote author="zerg2011" date="1344936267"]-What external viewer allows to solve this task?[/quote]
Poppler for example:
http://doc.trolltech.com/qq/qq27-poppler.html
http://poppler.freedesktop.org/
Or just google "Qt display PDF". -
Hi,
bq. -Is it possible to create such widget in Qt without third-party libs ?
I do not know any Qt widget that is able to open, display PDF without external libraries.
bq. -What external viewer allows to solve this task?
Some time ago I faced problem od displaying PDF and I used Poppler library. As I remember it was enough to give a file to this library and some area on which it could display PDF content.
BR,
-
I probably wasn't specific enough.
Firstly , I want to understand does Qt have completed (!) solution for pdf browsing
, in the context of my task . ( Of cause I get that everything can be implemented from scratch. )Then , if in this forum anyone have positive experience in this area
, it would be nice to hear these guys opinion. -
[quote author="zerg2011" date="1344943061"]
Firstly , I want to understand does Qt have completed (!) solution for pdf browsing
, in the context of my task .[/quote]
No.[quote author="zerg2011" date="1344943061"]Then , if in this forum anyone have positive experience in this area
, it would be nice to hear these guys opinion.[/quote]
Yes, see the first link I gave you. It does what you want in a few lines of code and has Qt bindings.