From b2af1e57857a309302c151f4c8f560f5dde3da2f Mon Sep 17 00:00:00 2001 From: Robin Watts Date: Tue, 14 Mar 2017 15:04:09 +0000 Subject: Update PWG writer to be a band_writer. Update mutool to call it. --- include/mupdf/fitz/output-pwg.h | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/mupdf/fitz/output-pwg.h b/include/mupdf/fitz/output-pwg.h index 0bd782f6..a3abc58d 100644 --- a/include/mupdf/fitz/output-pwg.h +++ b/include/mupdf/fitz/output-pwg.h @@ -88,7 +88,7 @@ void fz_write_bitmap_as_pwg(fz_context *ctx, fz_output *out, const fz_bitmap *bi /* Output the file header to a pwg stream, ready for pages to follow it. */ -void fz_write_pwg_header(fz_context *ctx, fz_output *out); +void fz_write_pwg_file_header(fz_context *ctx, fz_output *out); /* Output a page to a pwg stream to follow a header, or other pages. @@ -100,4 +100,16 @@ void fz_write_pixmap_as_pwg_page(fz_context *ctx, fz_output *out, const fz_pixma */ void fz_write_bitmap_as_pwg_page(fz_context *ctx, fz_output *out, const fz_bitmap *bitmap, const fz_pwg_options *pwg); +/* + fz_new_mono_pwg_band_writer: Generate a new band writer for + PWG format images. +*/ +fz_band_writer *fz_new_mono_pwg_band_writer(fz_context *ctx, fz_output *out, const fz_pwg_options *pwg); + +/* + fz_new_pwg_band_writer: Generate a new band writer for + contone PWG format images. +*/ +fz_band_writer *fz_new_pwg_band_writer(fz_context *ctx, fz_output *out, const fz_pwg_options *pwg); + #endif -- cgit v1.2.3