From 9963f9db0073a89a2713a74345eae8d4ec953509 Mon Sep 17 00:00:00 2001 From: John Whitington Date: Tue, 20 Mar 2018 15:43:15 +0000 Subject: [PATCH] more debug --- cpdfcommand.ml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cpdfcommand.ml b/cpdfcommand.ml index 453f5d6..2d5bbb0 100644 --- a/cpdfcommand.ml +++ b/cpdfcommand.ml @@ -3273,13 +3273,14 @@ let go () = saved encryption information in the PDF, or (b) decrypted using the owner password (stored in the input) *) if - not + (not args.debugforce) && + (not (fold_left ( && ) true (map2 (fun (_, _, _, _, was_dec_with_owner, _) pdf -> !was_dec_with_owner || pdf.Pdf.saved_encryption = None) inputs - pdfs)) + pdfs))) then soft_error "Merge requires the owner password for all encrypted files." else