From cfd5147d922ee4e29e10f116dfca79325398a6db Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Tue, 8 Feb 2022 11:07:37 -0500 Subject: Add QPDF::getVersionAsPDFVersion --- include/qpdf/PDFVersion.hh | 6 +++--- include/qpdf/QPDF.hh | 5 +++++ 2 files changed, 8 insertions(+), 3 deletions(-) (limited to 'include') 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 #include #include +#include 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 -- cgit v1.2.3-54-g00ecf