aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2022-02-08 19:38:03 +0100
committerJay Berkenbilt <ejb@ql.org>2022-02-08 19:49:22 +0100
commitd501e1c0d43eb5bf9fbbc39ac5e9ed5c5842b4ed (patch)
treeed90950571453d686a6a0c0895bf4cab35cfd23f /include
parent043c44556a0b515010dcdedc90aca66bdbc2b073 (diff)
downloadqpdf-d501e1c0d43eb5bf9fbbc39ac5e9ed5c5842b4ed.tar.zst
Only update output version from files used as input
If we're opening a PDF file to copy its encryption information or attachments, its version doesn't need to influence the output version.
Diffstat (limited to 'include')
-rw-r--r--include/qpdf/QPDFJob.hh10
1 files changed, 6 insertions, 4 deletions
diff --git a/include/qpdf/QPDFJob.hh b/include/qpdf/QPDFJob.hh
index 9524fdbf..acaa956b 100644
--- a/include/qpdf/QPDFJob.hh
+++ b/include/qpdf/QPDFJob.hh
@@ -444,15 +444,17 @@ class QPDFJob
// Basic file processing
std::shared_ptr<QPDF> processFile(
- char const* filename, char const* password);
+ char const* filename, char const* password,
+ bool used_for_input);
std::shared_ptr<QPDF> processInputSource(
- PointerHolder<InputSource> is, char const* password);
+ PointerHolder<InputSource> is, char const* password,
+ bool used_for_input);
std::shared_ptr<QPDF> doProcess(
std::function<void(QPDF*, char const*)> fn,
- char const* password, bool empty);
+ char const* password, bool empty, bool used_for_input);
std::shared_ptr<QPDF> doProcessOnce(
std::function<void(QPDF*, char const*)> fn,
- char const* password, bool empty);
+ char const* password, bool empty, bool used_for_input);
// Transformations
void setQPDFOptions(QPDF& pdf);