From 79b769b7ad1d87a8a77eb62f94467062bca8843e Mon Sep 17 00:00:00 2001 From: John Whitington Date: Thu, 13 Nov 2014 15:32:14 +0000 Subject: [PATCH] Now removes unreferenced on decompress --- cpdfcommand.ml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpdfcommand.ml b/cpdfcommand.ml index 4e8e561..461d175 100644 --- a/cpdfcommand.ml +++ b/cpdfcommand.ml @@ -2019,8 +2019,8 @@ let write_pdf ?(encryption = None) ?(is_decompress=false) mk_id pdf = begin ignore (Cpdf.recompress_pdf pdf); if args.squeeze then Cpdf.squeeze pdf; - Pdf.remove_unreferenced pdf end; + Pdf.remove_unreferenced pdf; really_write_pdf ~is_decompress mk_id pdf outname | Some _ -> really_write_pdf ~encryption ~is_decompress mk_id pdf outname