diff options
author | Jay Berkenbilt <ejb@ql.org> | 2021-11-02 23:06:09 +0100 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2021-11-03 14:43:17 +0100 |
commit | 42ca1f007ac18b2a1426093c02c6ff261b737eae (patch) | |
tree | 7de1e61215c7083bafbc877645004c4a68d058d5 | |
parent | 532a4f3d60f6981b22beb32e6ff688ec41f87e26 (diff) | |
download | qpdf-42ca1f007ac18b2a1426093c02c6ff261b737eae.tar.zst |
Document that --check > /dev/null is safe (fixes #522)
-rw-r--r-- | manual/qpdf-manual.xml | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/manual/qpdf-manual.xml b/manual/qpdf-manual.xml index 411cfcfb..f5dd444e 100644 --- a/manual/qpdf-manual.xml +++ b/manual/qpdf-manual.xml @@ -2943,7 +2943,12 @@ outfile.pdf</option> recover, after which other options are effectively operating on the recovered file. Combining <option>--check</option> with other options in this way can be useful for manually - recovering severely damaged files. + recovering severely damaged files. Note that + <option>--check</option> produces no output to standard output + when everything is valid, so if you are using this to + programmatically validate files in bulk, it is safe to run + without output redirected to <filename>/dev/null</filename> + and just check for a 0 exit code. </para> </listitem> </varlistentry> |