summaryrefslogtreecommitdiff
path: root/source/fitz/writer.c
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2017-10-06 19:27:00 +0100
committerRobin Watts <robin.watts@artifex.com>2017-10-13 15:57:24 +0100
commit5f044ffe43f770fade1934a6415cac08f82dd83c (patch)
treee53adf75b6d185fe320eb1ab6b555e95ead6866d /source/fitz/writer.c
parent365b009b648700e90ed0c83791849ba86b3f3678 (diff)
downloadmupdf-5f044ffe43f770fade1934a6415cac08f82dd83c.tar.xz
Simple PCLm device.
Both bandwriter and document_writer interfaces cope with multi page docs. Update mudraw to output pclm format too. Incorporates fixes from Tor.
Diffstat (limited to 'source/fitz/writer.c')
-rw-r--r--source/fitz/writer.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source/fitz/writer.c b/source/fitz/writer.c
index 11089bd9..1e9652da 100644
--- a/source/fitz/writer.c
+++ b/source/fitz/writer.c
@@ -140,10 +140,12 @@ fz_new_document_writer(fz_context *ctx, const char *path, const char *format, co
if (!fz_strcasecmp(format, "pkm"))
return fz_new_pkm_pixmap_writer(ctx, path, options);
- if (!fz_strcasecmp(format, "ps"))
- return fz_new_ps_writer(ctx, path, options);
if (!fz_strcasecmp(format, "pcl"))
return fz_new_pcl_writer(ctx, path, options);
+ if (!fz_strcasecmp(format, "pclm"))
+ return fz_new_pclm_writer(ctx, path, options);
+ if (!fz_strcasecmp(format, "ps"))
+ return fz_new_ps_writer(ctx, path, options);
if (!fz_strcasecmp(format, "pwg"))
return fz_new_pwg_writer(ctx, path, options);