Commit 42ca1f007ac18b2a1426093c02c6ff261b737eae

Authored by Jay Berkenbilt
1 parent 532a4f3d

Document that --check > /dev/null is safe (fixes #522)

Showing 1 changed file with 6 additions and 1 deletions
manual/qpdf-manual.xml
... ... @@ -2943,7 +2943,12 @@ outfile.pdf</option>
2943 2943 recover, after which other options are effectively operating
2944 2944 on the recovered file. Combining <option>--check</option> with
2945 2945 other options in this way can be useful for manually
2946   - recovering severely damaged files.
  2946 + recovering severely damaged files. Note that
  2947 + <option>--check</option> produces no output to standard output
  2948 + when everything is valid, so if you are using this to
  2949 + programmatically validate files in bulk, it is safe to run
  2950 + without output redirected to <filename>/dev/null</filename>
  2951 + and just check for a 0 exit code.
2947 2952 </para>
2948 2953 </listitem>
2949 2954 </varlistentry>
... ...