diff options
author | Robin Watts <robin.watts@artifex.com> | 2016-03-01 13:22:05 +0000 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2016-03-01 13:23:49 +0000 |
commit | efb832d2fb52e3439d638c5faee14cec3478d6a6 (patch) | |
tree | 48b104046775ec657059dbcb782d77f986b4bda4 | |
parent | 67021b40af65efa77d818011ca21dd087a2f6708 (diff) | |
download | mupdf-efb832d2fb52e3439d638c5faee14cec3478d6a6.tar.xz |
Mudraw: Avoid clearing the output pcl file after every page.
-rw-r--r-- | source/tools/mudraw.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/tools/mudraw.c b/source/tools/mudraw.c index 62e587e8..da9d7d0f 100644 --- a/source/tools/mudraw.c +++ b/source/tools/mudraw.c @@ -564,7 +564,8 @@ static void drawpage(fz_context *ctx, fz_document *doc, int pagenum) else { sprintf(filename_buf, output, pagenum); - output_file = fz_new_output_with_path(ctx, filename_buf, 0); + if (output_format != OUT_PWG && output_format != OUT_PCL) + output_file = fz_new_output_with_path(ctx, filename_buf, 0); } if (output_format == OUT_PGM || output_format == OUT_PPM || output_format == OUT_PNM) |