diff --git a/Makefile b/Makefile index 953c011..7c9b6c6 100644 --- a/Makefile +++ b/Makefile @@ -14,7 +14,7 @@ OCAMLLDFLAGS = -g all : native-code native-code-library byte-code-library top htdoc clean :: - rm -rf doc foo foo2 out.pdf out2pdf + rm -rf doc foo foo2 out.pdf out2.pdf LIBINSTALL_FILES = cpdf.a cpdf.cma cpdf.cmxa \ $(foreach x,$(MODS),$x.mli) $(foreach x,$(MODS),$x.cmi) diff --git a/cpdfcommand.ml b/cpdfcommand.ml index e662599..e3715bd 100644 --- a/cpdfcommand.ml +++ b/cpdfcommand.ml @@ -1951,7 +1951,7 @@ let really_write_pdf ?(encryption = None) ?(is_decompress=false) mk_id pdf outna end else begin - if not args.was_encrypted || args.was_decrypted_with_owner && args.was_encrypted then + if not args.was_encrypted || args.was_decrypted_with_owner then begin if args.debugcrypt then Printf.printf "Pdf to file in really_write_pdf\n"; Pdfwrite.pdf_to_file_options