summaryrefslogtreecommitdiff
path: root/qt4/tests/check_pagelayout_single.cpp
blob: 35ac219b56f1d98d30ec52cffb70062678fe39d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include <QtCore/QtCore>

#define UNSTABLE_POPPLER_QT4
#include <poppler-qt4.h>

int main( int argc, char **argv )
{
    QCoreApplication a( argc, argv );               // QApplication required!

    Poppler::Document *doc = Poppler::Document::load("../../../test/unittestcases/FullScreen.pdf");
    if (!doc)
    {
	exit(1);
    }
  
    if ( !(doc->pageLayout() == Poppler::Document::SinglePage ) )
    {
	exit(1);
    }

    exit(0);
}