From bbd45cd01c5993de0970065b2bbd03aa28837b2c Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Thu, 15 Oct 2020 15:03:14 -0400 Subject: Clarify qpdf's exit statuses in the documentation --- manual/qpdf-manual.xml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) (limited to 'manual') diff --git a/manual/qpdf-manual.xml b/manual/qpdf-manual.xml index 11e963dc..9579562c 100644 --- a/manual/qpdf-manual.xml +++ b/manual/qpdf-manual.xml @@ -594,6 +594,40 @@ make Most options require an output file, but some testing or inspection commands do not. These are specifically noted. + + Exit Status + + The exit status of qpdf may be interpreted as + follows: + + + + 0: no errors or warnings were found. The + file may still have problems qpdf can't detect. + + + + + 2: errors were found. qpdf was not able to + fully process the file. + + + + + 3: qpdf encountered problems that it was + able to recover from. In some cases, the resulting file may + still be damaged. Note that qpdf still exits with status + 3 if it finds warnings even when + is specified. + + + + Note that qpdf never exists with status + 1. If you get an exit status of + 1, it was something else, like the shell not + being able to find or execute qpdf. + + Shell Completion -- cgit v1.2.3-54-g00ecf