summaryrefslogtreecommitdiff
path: root/fitz/fitz.h
diff options
context:
space:
mode:
Diffstat (limited to 'fitz/fitz.h')
-rw-r--r--fitz/fitz.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/fitz/fitz.h b/fitz/fitz.h
index b4e7cee4..96cd69a8 100644
--- a/fitz/fitz.h
+++ b/fitz/fitz.h
@@ -2143,6 +2143,16 @@ typedef struct fz_page_s fz_page;
fz_document *fz_open_document(fz_context *ctx, char *filename);
/*
+ fz_open_document_with_stream: Open a PDF, XPS or CBZ document.
+
+ Open a document using the specified stream object rather than
+ opening a file on disk.
+
+ magic: a string used to detect document type; either a file name or mime-type.
+*/
+fz_document *fz_open_document_with_stream(fz_context *ctx, char *magic, fz_stream *stream);
+
+/*
fz_close_document: Close and free an open document.
The resource store in the context associated with fz_document