Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Poppler programming [closed]

Poppler is a classic example of something without documentation that you would prefer be documented. This question is language agnostic, just asking about the general idea.. In short, how do you make a PDF viewer control with poppler?
From what I can tell, you'd need to use poppler to render it to some surface, which sounds good up until you ask yourself how the user would select text and such. Does poppler offer a window for its various bindings, or do you have to code it all yourself?

like image 592
foobar Avatar asked Nov 06 '22 23:11

foobar


2 Answers

You have to code it all yourself -- Poppler only handles the PDF part, you have to write the GUI. Look at the code to Evince for a good example.

like image 82
John Millikin Avatar answered Nov 15 '22 10:11

John Millikin


The poppler release downloads now contain a Qt4 wrapper and some examples that you can take a look at.

like image 23
BastiBen Avatar answered Nov 15 '22 09:11

BastiBen