summaryrefslogtreecommitdiff
path: root/source/fitz/writer.c
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2016-05-30 14:29:08 +0200
committerRobin Watts <robin.watts@artifex.com>2016-05-30 17:49:19 +0100
commite74df981077189c6408be4cdfb1f9dc4738e4ed0 (patch)
treea868de66b31c973876e7036d7fe0bb7a013a035a /source/fitz/writer.c
parent0b73a8ddf620894112cd212b43f5d4cccec9d90e (diff)
downloadmupdf-e74df981077189c6408be4cdfb1f9dc4738e4ed0.tar.xz
Respect FZ_ENABLE_PDF=0 to allow dropping all PDF specific code in tools.
Diffstat (limited to 'source/fitz/writer.c')
-rw-r--r--source/fitz/writer.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/fitz/writer.c b/source/fitz/writer.c
index 94f601b5..2a344e52 100644
--- a/source/fitz/writer.c
+++ b/source/fitz/writer.c
@@ -54,8 +54,10 @@ fz_new_document_writer(fz_context *ctx, const char *path, const char *format, co
if (!fz_strcasecmp(format, "cbz"))
return fz_new_cbz_writer(ctx, path, options);
+#if FZ_ENABLE_PDF
if (!fz_strcasecmp(format, "pdf"))
return fz_new_pdf_writer(ctx, path, options);
+#endif
fz_throw(ctx, FZ_ERROR_GENERIC, "unknown document format: %s", format);
}