aboutsummaryrefslogtreecommitdiffstats
path: root/include/qpdf
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2022-02-08 17:07:37 +0100
committerJay Berkenbilt <ejb@ql.org>2022-02-08 18:34:14 +0100
commitcfd5147d922ee4e29e10f116dfca79325398a6db (patch)
treedc2742d54e9fdec9bc170ba677be0e8861f63766 /include/qpdf
parent8082af09bea1132cecc2d148eeb23bc05e66f6b2 (diff)
downloadqpdf-cfd5147d922ee4e29e10f116dfca79325398a6db.tar.zst
Add QPDF::getVersionAsPDFVersion
Diffstat (limited to 'include/qpdf')
-rw-r--r--include/qpdf/PDFVersion.hh6
-rw-r--r--include/qpdf/QPDF.hh5
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