summaryrefslogtreecommitdiff
path: root/source/fitz/draw-device.c
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2017-08-10 15:08:02 +0200
committerTor Andersson <tor.andersson@artifex.com>2017-08-17 13:38:48 +0200
commitd447754cc9a6220df1b2f8395101b5d79adac9fe (patch)
treeb167b4c03161ac91f5078551052c64dd59617387 /source/fitz/draw-device.c
parentb796ddf898817ad0a16013ffc7e67420c5881b6f (diff)
downloadmupdf-d447754cc9a6220df1b2f8395101b5d79adac9fe.tar.xz
Add PWG document writer.
Option parsing is not implemented yet.
Diffstat (limited to 'source/fitz/draw-device.c')
-rw-r--r--source/fitz/draw-device.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/fitz/draw-device.c b/source/fitz/draw-device.c
index ac6752bd..ce825eca 100644
--- a/source/fitz/draw-device.c
+++ b/source/fitz/draw-device.c
@@ -2507,7 +2507,7 @@ fz_bound_path_accurate(fz_context *ctx, fz_irect *bbox, const fz_irect *scissor,
}
const char *fz_draw_options_usage =
- "Common raster format output options:\n"
+ "Raster output options:\n"
"\trotate=N: rotate rendered pages N degrees counterclockwise\n"
"\tresolution=N: set both X and Y resolution in pixels per inch\n"
"\tx-resolution=N: X resolution of rendered pages in pixels per inch\n"
@@ -2565,7 +2565,7 @@ fz_parse_draw_options(fz_context *ctx, fz_draw_options *opts, const char *args)
opts->height = fz_atoi(val);
if (fz_has_option(ctx, args, "colorspace", &val))
{
- if (fz_option_eq(val, "gray") || fz_option_eq(val, "grey"))
+ if (fz_option_eq(val, "gray") || fz_option_eq(val, "grey") || fz_option_eq(val, "mono"))
opts->colorspace = fz_device_gray(ctx);
else if (fz_option_eq(val, "rgb"))
opts->colorspace = fz_device_rgb(ctx);