summaryrefslogtreecommitdiff
path: root/include/mupdf/fitz/writer.h
diff options
context:
space:
mode:
authorRobin Watts <Robin.Watts@artifex.com>2017-03-24 15:27:17 -0400
committerRobin Watts <Robin.Watts@artifex.com>2017-03-24 15:29:21 -0400
commit11a544dbb2da9d5aeb608fb2e1afc97334e8dd1e (patch)
tree961ff34160d2f059454e8a89a10f32bd5e70778a /include/mupdf/fitz/writer.h
parentea75724276f1efabd5d78595af0d3d35f7cde659 (diff)
downloadmupdf-11a544dbb2da9d5aeb608fb2e1afc97334e8dd1e.tar.xz
Add fz_new_XXX_document_writer calls for pixmaps.
This enables people to access (say) a PNG writer without pulling in every single document writer at link time. (Of course, currently, without function level linking, even now we'll pull everything in, but we can improve this by splitting source files up).
Diffstat (limited to 'include/mupdf/fitz/writer.h')
-rw-r--r--include/mupdf/fitz/writer.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/include/mupdf/fitz/writer.h b/include/mupdf/fitz/writer.h
index a7039097..2c2f967f 100644
--- a/include/mupdf/fitz/writer.h
+++ b/include/mupdf/fitz/writer.h
@@ -33,6 +33,21 @@ int fz_option_eq(const char *a, const char *b);
fz_document_writer *fz_new_document_writer(fz_context *ctx, const char *path, const char *format, const char *options);
+fz_document_writer *fz_new_png_pixmap_writer(fz_context *ctx, const char *path, const char *options);
+
+fz_document_writer *fz_new_tga_pixmap_writer(fz_context *ctx, const char *path, const char *options);
+
+fz_document_writer *fz_new_pam_pixmap_writer(fz_context *ctx, const char *path, const char *options);
+
+fz_document_writer *fz_new_pnm_pixmap_writer(fz_context *ctx, const char *path, const char *options);
+
+fz_document_writer *fz_new_pgm_pixmap_writer(fz_context *ctx, const char *path, const char *options);
+
+fz_document_writer *fz_new_ppm_pixmap_writer(fz_context *ctx, const char *path, const char *options);
+
+fz_document_writer *fz_new_pbm_pixmap_writer(fz_context *ctx, const char *path, const char *options);
+
+fz_document_writer *fz_new_pkm_pixmap_writer(fz_context *ctx, const char *path, const char *options);
fz_device *fz_begin_page(fz_context *ctx, fz_document_writer *wri, const fz_rect *mediabox);
void fz_end_page(fz_context *ctx, fz_document_writer *wri, fz_device *dev);