Now removes unreferenced on decompress

This commit is contained in:
John Whitington 2014-11-13 15:32:14 +00:00
parent 43950455fb
commit 79b769b7ad

View File

@ -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