summaryrefslogtreecommitdiff
path: root/include/mupdf/fitz/document.h
diff options
context:
space:
mode:
authorSebastian Rasmussen <sebras@gmail.com>2017-01-19 02:20:26 +0100
committerTor Andersson <tor.andersson@artifex.com>2017-04-13 14:13:31 +0200
commit241d200228e3b7cf3d5300626158833516b90a94 (patch)
treee926fd685f48888fc632b4ac83b8e904f129804e /include/mupdf/fitz/document.h
parent0cd7f2e8397e2caf47f3d46ef635358fa0ba194c (diff)
downloadmupdf-241d200228e3b7cf3d5300626158833516b90a94.tar.xz
Export fz_recognize_document and use it in java code.
Diffstat (limited to 'include/mupdf/fitz/document.h')
-rw-r--r--include/mupdf/fitz/document.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/mupdf/fitz/document.h b/include/mupdf/fitz/document.h
index 0591a2a1..128087a8 100644
--- a/include/mupdf/fitz/document.h
+++ b/include/mupdf/fitz/document.h
@@ -300,6 +300,15 @@ void fz_register_document_handler(fz_context *ctx, const fz_document_handler *ha
void fz_register_document_handlers(fz_context *ctx);
/*
+ fz_recognize_document: Given a magic find a document
+ handler that can handle a document of this type.
+
+ magic: Can be a file extension (including initial period) or
+ a mimetype.
+*/
+const fz_document_handler *fz_recognize_document(fz_context *ctx, const char *magic);
+
+/*
fz_open_document: Open a PDF, XPS or CBZ document.
Open a document file and read its basic structure so pages and