1#ifndef MUPDF_PDF_JAVASCRIPT_H
2#define MUPDF_PDF_JAVASCRIPT_H
3
4void pdf_enable_js(fz_context *ctx, pdf_document *doc);
5void pdf_disable_js(fz_context *ctx, pdf_document *doc);
6int pdf_js_supported(fz_context *ctx, pdf_document *doc);
7void pdf_drop_js(fz_context *ctx, pdf_js *js);
8
9void pdf_js_event_init(pdf_js *js, pdf_obj *target, const char *value, int willCommit);
10int pdf_js_event_result(pdf_js *js);
11char *pdf_js_event_value(pdf_js *js);
12void pdf_js_event_init_keystroke(pdf_js *js, pdf_obj *target, pdf_keystroke_event *evt);
13int pdf_js_event_result_keystroke(pdf_js *js, pdf_keystroke_event *evt);
14
15void pdf_js_execute(pdf_js *js, const char *name, const char *code);
16
17#endif
18