Add simple check for password protected pdf's (poppler only)

This commit is contained in:
Felix Kauselmann
2015-03-18 15:10:30 +01:00
commit 7e7b35a004
923 changed files with 80104 additions and 0 deletions

22
common/pdf_comic.h Normal file
View File

@ -0,0 +1,22 @@
#ifndef PDF_COMIC_H
#define PDF_COMIC_H
#include <QObject>
#include <QImage>
class MacOSXPDFComic
{
public:
MacOSXPDFComic();
~MacOSXPDFComic();
bool openComic(const QString & path);
void closeComic();
unsigned int numPages();
QImage getPage(const int page);
void releaseLastPageData();
private:
void * document;
void * lastPageData;
};
#endif // PDF_COMIC_H