diff options
-rw-r--r-- | CMakeLists.txt | 1 | ||||
-rw-r--r-- | poppler/Makefile.am | 1 | ||||
-rw-r--r-- | poppler/PDFDocBuilder.h | 32 |
3 files changed, 34 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 70b0e06d..32457302 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -400,6 +400,7 @@ if(ENABLE_XPDF_HEADERS) poppler/PageTransition.h poppler/Parser.h poppler/PDFDoc.h + poppler/PDFDocBuilder.h poppler/PDFDocEncoding.h poppler/PopplerCache.h poppler/ProfileData.h diff --git a/poppler/Makefile.am b/poppler/Makefile.am index 5cd68a41..a013460f 100644 --- a/poppler/Makefile.am +++ b/poppler/Makefile.am @@ -218,6 +218,7 @@ poppler_include_HEADERS = \ PageTransition.h \ Parser.h \ PDFDoc.h \ + PDFDocBuilder.h \ PDFDocEncoding.h \ PopplerCache.h \ ProfileData.h \ diff --git a/poppler/PDFDocBuilder.h b/poppler/PDFDocBuilder.h new file mode 100644 index 00000000..8a1350b0 --- /dev/null +++ b/poppler/PDFDocBuilder.h @@ -0,0 +1,32 @@ +//======================================================================== +// +// PDFDocBuilder.h +// +// This file is licensed under the GPLv2 or later +// +// Copyright 2010 Hib Eris <hib@hiberis.nl> +// +//======================================================================== + +#ifndef PDFDOCBUILDER_H +#define PDFDOCBUILDER_H + +#include "PDFDoc.h" +class GooString; + +//------------------------------------------------------------------------ +// PDFDocBuilder +//------------------------------------------------------------------------ + +class PDFDocBuilder { + +public: + + virtual ~PDFDocBuilder() {}; + virtual PDFDoc *buildPDFDoc(GooString* uri, GooString *ownerPassword = NULL, + GooString *userPassword = NULL, void *guiDataA = NULL) = 0; + virtual GBool supports(GooString* uri) = 0; + +}; + +#endif /* PDFDOCBUILDER_H */ |