diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2016-06-16 12:23:11 +0200 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2016-06-16 18:08:15 +0100 |
commit | adc06f3c7f4ca0acbee8b5be84d72d716b60b5a0 (patch) | |
tree | 0fab413b744abf39086e3fb9d007fe162f577f0d /source/pdf | |
parent | 000e932a844ecc6cd59ae9cadc3c3150d4a6bf5b (diff) | |
download | mupdf-adc06f3c7f4ca0acbee8b5be84d72d716b60b5a0.tar.xz |
Add PNG output for mutool convert.
Diffstat (limited to 'source/pdf')
-rw-r--r-- | source/pdf/pdf-write.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/source/pdf/pdf-write.c b/source/pdf/pdf-write.c index b160002e..b6e37d39 100644 --- a/source/pdf/pdf-write.c +++ b/source/pdf/pdf-write.c @@ -2766,7 +2766,7 @@ const char *fz_pdf_write_options_usage = "\tgarbage: garbage collect unused objects\n" "\tor garbage=compact: ... and compact cross reference table\n" "\tor garbage=deduplicate: ... and remove duplicate objects\n" - ; + "\n"; pdf_write_options * pdf_parse_write_options(fz_context *ctx, pdf_write_options *opts, const char *args) @@ -3264,7 +3264,8 @@ fz_new_pdf_writer(fz_context *ctx, const char *path, const char *options) fz_try(ctx) { - wri->filename = fz_strdup(ctx, path); + pdf_parse_write_options(ctx, &wri->opts, options); + wri->filename = fz_strdup(ctx, path ? path : "out.pdf"); wri->pdf = pdf_create_document(ctx); } fz_catch(ctx) @@ -3275,7 +3276,5 @@ fz_new_pdf_writer(fz_context *ctx, const char *path, const char *options) fz_rethrow(ctx); } - pdf_parse_write_options(ctx, &wri->opts, options); - return (fz_document_writer*)wri; } |