From 85a3f95a89ca392a3726f8d964024dfd10177e09 Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Sat, 22 Jun 2019 13:18:26 -0400 Subject: qpdf: exit 3 for linearization warnings without errors (fixes #50) --- include/qpdf/QPDF.hh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'include') 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); -- cgit v1.2.3-54-g00ecf