From 153aed080a49c044c1191777ab2c70197ed47595 Mon Sep 17 00:00:00 2001 From: John Whitington Date: Mon, 21 Oct 2019 11:28:40 +0100 Subject: [PATCH] Make clean play with AND --- cpdfcommand.ml | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/cpdfcommand.ml b/cpdfcommand.ml index a941483..944be81 100644 --- a/cpdfcommand.ml +++ b/cpdfcommand.ml @@ -3675,12 +3675,8 @@ let go () = _ -> soft_error "Malformed XRef table. Cannot determine number of revisions." end | Some Clean -> - begin match args.out with - | (File _ | Stdout) -> - let pdf' = get_single_pdf (Some Clean) false in - write_pdf false pdf' - | _ -> error "Clean: No output specified" - end + let pdf' = get_single_pdf (Some Clean) false in + write_pdf false pdf' | Some Info -> let pdf = get_single_pdf ~decrypt:true (Some Info) true in let inname = match args.inputs with (InFile x, _, _, _, _, _)::_ -> x | _ -> "" in