summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2022-01-23 19:11:46 +0100
committerJay Berkenbilt <ejb@ql.org>2022-01-30 19:11:03 +0100
commitfcdbc8a102ca258d105ebd2f41bbf17b29c817fd (patch)
tree520877ee0bbcb61781b9b4209a074c9180e348a6 /include
parentc4e56fa5f40188ddf4f75d316e57143c10ed51fa (diff)
downloadqpdf-fcdbc8a102ca258d105ebd2f41bbf17b29c817fd.tar.zst
Move doFinalChecks to QPDFJob::checkConfiguration
Diffstat (limited to 'include')
-rw-r--r--include/qpdf/QPDFJob.hh8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/qpdf/QPDFJob.hh b/include/qpdf/QPDFJob.hh
index 921742db..523ff357 100644
--- a/include/qpdf/QPDFJob.hh
+++ b/include/qpdf/QPDFJob.hh
@@ -85,6 +85,14 @@ class QPDFJob
QPDF_DLL
void setOutputStreams(std::ostream* out_stream, std::ostream* err_stream);
+ // Check to make sure no contradictory options have been
+ // specified. This is called automatically after initializing from
+ // argv or json and is also called by run, but you can call it
+ // manually as well. It throws a Usage exception if there are any
+ // errors.
+ QPDF_DLL
+ void checkConfiguration();
+
// Returns true if output is created by the specified job.
QPDF_DLL
bool createsOutput() const;