1
#include <QtTest/QtTest>
3
#include <poppler-qt4.h>
5
#include <QtCore/QFile>
7
class TestActualText: public QObject
11
void checkActualText1();
14
void TestActualText::checkActualText1()
16
Poppler::Document *doc;
17
doc = Poppler::Document::load("../../../test/unittestcases/WithActualText.pdf");
20
Poppler::Page *page = doc->page(0);
23
QCOMPARE( page->text(QRectF()), QString("The slow brown fox jumps over the black dog.") );
30
QTEST_MAIN(TestActualText)
32
#include "check_actualtext.moc"