Added -error-on-malformed, -debug-always-treat-malformed

This commit is contained in:
John Whitington 2018-04-05 12:56:32 +01:00
parent 00ab560f8a
commit e8cbf937f6
1 changed files with 4 additions and 0 deletions

View File

@ -1577,6 +1577,9 @@ and specs =
("-stdout", ("-stdout",
Arg.Unit setstdout, Arg.Unit setstdout,
" Send result to standard output"); " Send result to standard output");
("-error-on-malformed",
Arg.Set Pdfread.error_on_malformed,
" Do not try to read malformed files");
("-range", ("-range",
Arg.String setrange, Arg.String setrange,
" Explicitly add a range"); " Explicitly add a range");
@ -2099,6 +2102,7 @@ and specs =
("-debug", Arg.Unit setdebug, ""); ("-debug", Arg.Unit setdebug, "");
("-debug-crypt", Arg.Unit setdebugcrypt, ""); ("-debug-crypt", Arg.Unit setdebugcrypt, "");
("-debug-force", Arg.Unit setdebugforce, ""); ("-debug-force", Arg.Unit setdebugforce, "");
("-debug-malformed", Arg.Set Pdfread.debug_always_treat_malformed, "");
("-fix-prince", Arg.Unit (setop RemoveUnusedResources), ""); ("-fix-prince", Arg.Unit (setop RemoveUnusedResources), "");
("-extract-text", Arg.Unit (setop ExtractText), ""); ("-extract-text", Arg.Unit (setop ExtractText), "");
("-extract-text-font-size", Arg.Float setextracttextfontsize, ""); ("-extract-text-font-size", Arg.Float setextracttextfontsize, "");