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