From 80949d3d6b6320f5643a450c382f19370922e78f Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Thu, 17 Dec 2015 22:38:35 +0100 Subject: Remove fz_save_document and use pdf_save_document directly instead. In preparation of adding pdf_write_document that writes a document to a fz_output stream. --- source/tools/pdfclean.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'source/tools/pdfclean.c') diff --git a/source/tools/pdfclean.c b/source/tools/pdfclean.c index 93ec762d..8d599de9 100644 --- a/source/tools/pdfclean.c +++ b/source/tools/pdfclean.c @@ -37,7 +37,7 @@ int pdfclean_main(int argc, char **argv) char *outfile = "out.pdf"; char *password = ""; int c; - fz_save_options opts; + pdf_write_options opts; int errors = 0; fz_context *ctx; @@ -57,9 +57,9 @@ int pdfclean_main(int argc, char **argv) { case 'p': password = fz_optarg; break; case 'g': opts.do_garbage ++; break; - case 'd': opts.do_expand ^= fz_expand_all; break; - case 'f': opts.do_expand ^= fz_expand_fonts; break; - case 'i': opts.do_expand ^= fz_expand_images; break; + case 'd': opts.do_expand ^= PDF_EXPAND_ALL; break; + case 'f': opts.do_expand ^= PDF_EXPAND_FONTS; break; + case 'i': opts.do_expand ^= PDF_EXPAND_IMAGES; break; case 'l': opts.do_linear ++; break; case 'a': opts.do_ascii ++; break; case 'z': opts.do_deflate ++; break; -- cgit v1.2.3