summaryrefslogtreecommitdiff
path: root/source/fitz/writer.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/writer.c
parentb796ddf898817ad0a16013ffc7e67420c5881b6f (diff)
downloadmupdf-d447754cc9a6220df1b2f8395101b5d79adac9fe.tar.xz
Add PWG document writer.
Option parsing is not implemented yet.
Diffstat (limited to 'source/fitz/writer.c')
-rw-r--r--source/fitz/writer.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/fitz/writer.c b/source/fitz/writer.c
index 4e436e08..f0e00256 100644
--- a/source/fitz/writer.c
+++ b/source/fitz/writer.c
@@ -140,6 +140,9 @@ 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, "pwg"))
+ return fz_new_pwg_writer(ctx, path, options);
+
if (!fz_strcasecmp(format, "txt") || !fz_strcasecmp(format, "text"))
return fz_new_text_writer(ctx, "text", path, options);
if (!fz_strcasecmp(format, "html"))