diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/qpdf/PDFVersion.hh | 6 | ||||
-rw-r--r-- | include/qpdf/QPDF.hh | 5 |
2 files changed, 8 insertions, 3 deletions
diff --git a/include/qpdf/PDFVersion.hh b/include/qpdf/PDFVersion.hh index 3a8274ea..2ce231f5 100644 --- a/include/qpdf/PDFVersion.hh +++ b/include/qpdf/PDFVersion.hh @@ -65,9 +65,9 @@ class PDFVersion int getExtensionLevel() const; private: - int major; - int minor; - int extension; + int major_version; + int minor_version; + int extension_level; }; #endif // PDFVERSION_HH diff --git a/include/qpdf/QPDF.hh b/include/qpdf/QPDF.hh index 998fdb8c..57e943f9 100644 --- a/include/qpdf/QPDF.hh +++ b/include/qpdf/QPDF.hh @@ -44,6 +44,7 @@ #include <qpdf/QPDFStreamFilter.hh> #include <qpdf/Buffer.hh> #include <qpdf/InputSource.hh> +#include <qpdf/PDFVersion.hh> class QPDF_Stream; class BitStream; @@ -260,6 +261,10 @@ class QPDF QPDF_DLL std::string getFilename() const; + // Return PDF Version and extension level together as a PDFVersion object + QPDF_DLL + PDFVersion getVersionAsPDFVersion(); + // Return just the PDF version from the file QPDF_DLL std::string getPDFVersion() const; QPDF_DLL |