summaryrefslogtreecommitdiff
path: root/fitz
diff options
context:
space:
mode:
authorPaul Gardiner <paulg.artifex@glidos.net>2012-10-11 11:38:32 +0100
committerPaul Gardiner <paulg.artifex@glidos.net>2012-10-11 11:38:32 +0100
commit84f84d86e6d7f079e12139fa3306c3bc71713f77 (patch)
treec97062f75ed879cd3cb8b7e08a0fb63be23030b2 /fitz
parenteae647babea3730d2af1d1882707db355bd660ac (diff)
downloadmupdf-84f84d86e6d7f079e12139fa3306c3bc71713f77.tar.xz
Android Forms: pass in mouse events and handle updating
Also add a function to report whether the core has javascript support, so that the additional features can be enabled only when the javascript engine is present
Diffstat (limited to 'fitz')
-rw-r--r--fitz/doc_document.c5
-rw-r--r--fitz/fitz.h6
2 files changed, 11 insertions, 0 deletions
diff --git a/fitz/doc_document.c b/fitz/doc_document.c
index 8b8197e7..402f3bd9 100644
--- a/fitz/doc_document.c
+++ b/fitz/doc_document.c
@@ -189,6 +189,11 @@ fz_interactive *fz_interact(fz_document *doc)
return NULL;
}
+int fz_javascript_supported()
+{
+ return pdf_js_supported();
+}
+
void
fz_write_document(fz_document *doc, char *filename, fz_write_options *opts)
{
diff --git a/fitz/fitz.h b/fitz/fitz.h
index b399b3c1..3feaede5 100644
--- a/fitz/fitz.h
+++ b/fitz/fitz.h
@@ -2713,6 +2713,12 @@ typedef struct
*/
fz_mail_doc_event *fz_access_mail_doc_event(fz_doc_event *event);
+/*
+ fz_javascript_supported: test whether a version of mupdf with
+ a javascript engine is in use.
+*/
+int fz_javascript_supported();
+
typedef struct fz_write_options_s fz_write_options;
/*