Add support for pdfium

This commit is contained in:
Felix Kauselmann
2016-10-18 00:48:56 +02:00
parent f05ac77fc2
commit c74934c822
7 changed files with 268 additions and 147 deletions

View File

@ -154,14 +154,16 @@ class PDFComic : public Comic
Q_OBJECT
private:
//pdf
#ifdef Q_OS_MAC
MacOSXPDFComic * pdfComic;
#else
#if defined Q_OS_MAC && defined USE_PDFKIT
MacOSXPDFComic * pdfComic;
#elif defined USE_PDFIUM
PdfiumComic * pdfComic;
#else
Poppler::Document * pdfComic;
#endif
#endif
void renderPage(int page);
//void run();
public:
@ -183,4 +185,4 @@ class FactoryComic
public:
static Comic * newComic(const QString & path);
};
#endif
#endif