diff options
author | Sebastian Rasmussen <sebras@gmail.com> | 2017-01-19 02:20:26 +0100 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2017-04-13 14:13:31 +0200 |
commit | 241d200228e3b7cf3d5300626158833516b90a94 (patch) | |
tree | e926fd685f48888fc632b4ac83b8e904f129804e /include | |
parent | 0cd7f2e8397e2caf47f3d46ef635358fa0ba194c (diff) | |
download | mupdf-241d200228e3b7cf3d5300626158833516b90a94.tar.xz |
Export fz_recognize_document and use it in java code.
Diffstat (limited to 'include')
-rw-r--r-- | include/mupdf/fitz/document.h | 9 |
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 |