diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2012-05-23 14:59:26 +0200 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2012-05-23 14:59:26 +0200 |
commit | d7d281dea2f9816730337d97d110c6ddc20ff5c0 (patch) | |
tree | e140c436af23778ce1ea060bd3f3f461d95883bd /apps/mupdfclean.c | |
parent | fc3dfd623ec30e912bed9615126e0656406a5b75 (diff) | |
download | mupdf-d7d281dea2f9816730337d97d110c6ddc20ff5c0.tar.xz |
Bring xref object and stream mutation functions back from the dead.
Needs more work to use the linked list of free xref slots.
Diffstat (limited to 'apps/mupdfclean.c')
-rw-r--r-- | apps/mupdfclean.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/mupdfclean.c b/apps/mupdfclean.c index a3711c72..5eff3abd 100644 --- a/apps/mupdfclean.c +++ b/apps/mupdfclean.c @@ -49,7 +49,7 @@ static void retainpages(int argc, char **argv) pdf_dict_puts(root, "Type", pdf_dict_gets(oldroot, "Type")); pdf_dict_puts(root, "Pages", pdf_dict_gets(oldroot, "Pages")); - pdf_update_object(xref, pdf_to_num(oldroot), pdf_to_gen(oldroot), root); + pdf_update_object(xref, pdf_to_num(oldroot), root); pdf_drop_obj(root); @@ -209,7 +209,7 @@ int pdfclean_main(int argc, char **argv) if (subset) retainpages(argc, argv); - pdf_write(xref, outfile, &opts); + pdf_write_document(xref, outfile, &opts); pdf_close_document(xref); fz_free_context(ctx); |