provided that you have correctly installed the headers and poppler libraries on your system. I am on ubuntu and run:
./configure
make
make install
Poppler. , msys/mingw .
.pro :
INCLUDEPATH += /path_to_poppler_include_files/qt4
LIBS += -L/path_to_poppler_libs -lpoppler-qt4
, :
....
QString filename;
Poppler::Document* document = Poppler::Document::load(filename);
if (!document || document->isLocked())
{
// ...
delete document;
}
.
, ,