From 457873fbf7fd6d40242722f3a51b41428302d0ca Mon Sep 17 00:00:00 2001 From: Paul Gardiner Date: Thu, 4 Jan 2018 15:11:24 +0000 Subject: Add fz_output_as_stream This provides a way for some output streams to also be read, a feature needed for the sake of document signing. Currently this is supported only for file output. --- source/fitz/fitz-imp.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source/fitz/fitz-imp.h') diff --git a/source/fitz/fitz-imp.h b/source/fitz/fitz-imp.h index 41c905e4..9740213d 100644 --- a/source/fitz/fitz-imp.h +++ b/source/fitz/fitz-imp.h @@ -3,6 +3,8 @@ #include "mupdf/fitz.h" +#include + struct fz_buffer_s { int refs; @@ -91,6 +93,8 @@ void fz_new_output_context(fz_context *ctx); void fz_drop_output_context(fz_context *ctx); fz_output_context *fz_keep_output_context(fz_context *ctx); +fz_stream *fz_open_file_ptr_no_close(fz_context *ctx, FILE *file); + #if defined(MEMENTO) || !defined(NDEBUG) #define FITZ_DEBUG_LOCKING #endif -- cgit v1.2.3