diff options
author | Jay Berkenbilt <ejb@ql.org> | 2019-06-22 19:18:26 +0200 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2019-06-22 22:57:51 +0200 |
commit | 85a3f95a89ca392a3726f8d964024dfd10177e09 (patch) | |
tree | f6bd1b02f604e29c5b35020ebc85a32309d12752 /include/qpdf/QPDF.hh | |
parent | 557bd3c26141b5e450de0fada2a27584a386125e (diff) | |
download | qpdf-85a3f95a89ca392a3726f8d964024dfd10177e09.tar.zst |
qpdf: exit 3 for linearization warnings without errors (fixes #50)
Diffstat (limited to 'include/qpdf/QPDF.hh')
-rw-r--r-- | include/qpdf/QPDF.hh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/qpdf/QPDF.hh b/include/qpdf/QPDF.hh index f8a84ce9..d534a4df 100644 --- a/include/qpdf/QPDF.hh +++ b/include/qpdf/QPDF.hh @@ -483,6 +483,9 @@ class QPDF // specified in a call to setOutputStreams. QPDF_DLL bool checkLinearization(); + // Separately indicate whether there were errors or warnings. + QPDF_DLL + void checkLinearization(bool& errors, bool& warnings); // Calls checkLinearization() and, if possible, prints normalized // contents of some of the hints tables to std::cout or the output @@ -1226,7 +1229,7 @@ class QPDF // methods to support linearization checking -- implemented in // QPDF_linearization.cc void readLinearizationData(); - bool checkLinearizationInternal(); + void checkLinearizationInternal(bool& errors, bool& warnings); void dumpLinearizationDataInternal(); QPDFObjectHandle readHintStream( Pipeline&, qpdf_offset_t offset, size_t length); |