mirror of
https://github.com/johnwhitington/cpdf-source.git
synced 2025-05-25 06:54:21 +02:00
Now removes unreferenced on decompress
This commit is contained in:
parent
43950455fb
commit
79b769b7ad
@ -2019,8 +2019,8 @@ let write_pdf ?(encryption = None) ?(is_decompress=false) mk_id pdf =
|
|||||||
begin
|
begin
|
||||||
ignore (Cpdf.recompress_pdf pdf);
|
ignore (Cpdf.recompress_pdf pdf);
|
||||||
if args.squeeze then Cpdf.squeeze pdf;
|
if args.squeeze then Cpdf.squeeze pdf;
|
||||||
Pdf.remove_unreferenced pdf
|
|
||||||
end;
|
end;
|
||||||
|
Pdf.remove_unreferenced pdf;
|
||||||
really_write_pdf ~is_decompress mk_id pdf outname
|
really_write_pdf ~is_decompress mk_id pdf outname
|
||||||
| Some _ ->
|
| Some _ ->
|
||||||
really_write_pdf ~encryption ~is_decompress mk_id pdf outname
|
really_write_pdf ~encryption ~is_decompress mk_id pdf outname
|
||||||
|
Loading…
x
Reference in New Issue
Block a user