diff options
author | Jay Berkenbilt <ejb@ql.org> | 2022-02-08 17:27:38 +0100 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2022-02-08 18:34:14 +0100 |
commit | f91b21c7d4e99d32be8e0a180821af17c8150140 (patch) | |
tree | d24c3ba91a681bad947d93365121626b880cba3b /include | |
parent | cfd5147d922ee4e29e10f116dfca79325398a6db (diff) | |
download | qpdf-f91b21c7d4e99d32be8e0a180821af17c8150140.tar.zst |
Preserve input PDF version on pages/split-pages (fixes #610)
Diffstat (limited to 'include')
-rw-r--r-- | include/qpdf/QPDFJob.hh | 2 | ||||
-rw-r--r-- | include/qpdf/QPDFWriter.hh | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/include/qpdf/QPDFJob.hh b/include/qpdf/QPDFJob.hh index 799a34fd..9524fdbf 100644 --- a/include/qpdf/QPDFJob.hh +++ b/include/qpdf/QPDFJob.hh @@ -26,6 +26,7 @@ #include <qpdf/Constants.h> #include <qpdf/QPDF.hh> #include <qpdf/QPDFPageObjectHelper.hh> +#include <qpdf/PDFVersion.hh> #include <memory> #include <string> @@ -587,6 +588,7 @@ class QPDFJob int flatten_annotations_required; int flatten_annotations_forbidden; bool generate_appearances; + PDFVersion max_input_version; std::string min_version; std::string force_version; bool show_npages; diff --git a/include/qpdf/QPDFWriter.hh b/include/qpdf/QPDFWriter.hh index 97d190a7..1f8fc360 100644 --- a/include/qpdf/QPDFWriter.hh +++ b/include/qpdf/QPDFWriter.hh @@ -42,11 +42,11 @@ #include <qpdf/QPDFObjectHandle.hh> #include <qpdf/QPDFObjGen.hh> #include <qpdf/QPDFXRefEntry.hh> - #include <qpdf/Pl_Buffer.hh> #include <qpdf/PointerHolder.hh> #include <qpdf/Pipeline.hh> #include <qpdf/Buffer.hh> +#include <qpdf/PDFVersion.hh> class QPDF; class Pl_Count; @@ -265,6 +265,8 @@ class QPDFWriter // streams are used. QPDF_DLL void setMinimumPDFVersion(std::string const&, int extension_level = 0); + QPDF_DLL + void setMinimumPDFVersion(PDFVersion const&); // Force the PDF version of the output file to be a given version. // Use of this function may create PDF files that will not work |