From e8cbf937f6dec53adaab4fd5dce4662749714974 Mon Sep 17 00:00:00 2001 From: John Whitington Date: Thu, 5 Apr 2018 12:56:32 +0100 Subject: [PATCH] Added -error-on-malformed, -debug-always-treat-malformed --- cpdfcommand.ml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cpdfcommand.ml b/cpdfcommand.ml index d6749fe..ebf6ce4 100644 --- a/cpdfcommand.ml +++ b/cpdfcommand.ml @@ -1577,6 +1577,9 @@ and specs = ("-stdout", Arg.Unit setstdout, " Send result to standard output"); + ("-error-on-malformed", + Arg.Set Pdfread.error_on_malformed, + " Do not try to read malformed files"); ("-range", Arg.String setrange, " Explicitly add a range"); @@ -2099,6 +2102,7 @@ and specs = ("-debug", Arg.Unit setdebug, ""); ("-debug-crypt", Arg.Unit setdebugcrypt, ""); ("-debug-force", Arg.Unit setdebugforce, ""); + ("-debug-malformed", Arg.Set Pdfread.debug_always_treat_malformed, ""); ("-fix-prince", Arg.Unit (setop RemoveUnusedResources), ""); ("-extract-text", Arg.Unit (setop ExtractText), ""); ("-extract-text-font-size", Arg.Float setextracttextfontsize, "");