~ps-jenkins/poppler-qml-plugin/latestsnapshot-0.1.1+13.10.20130819.2-0ubuntu1

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#ifndef PAGEIMAGEPROVIDER_H
#define PAGEIMAGEPROVIDER_H

#include <QQuickImageProvider>
#include <poppler/qt5/poppler-qt5.h>

class PageImageProvider : public QQuickImageProvider
{
public:
    PageImageProvider(Poppler::Document *pdfDocument);
    QImage requestImage(const QString & id, QSize * size, const QSize & requestedSize);

private:
    Poppler::Document *document;
};

#endif // PAGEIMAGEPROVIDER_H