diff options
Diffstat (limited to 'pdf/pdf_form.c')
-rw-r--r-- | pdf/pdf_form.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pdf/pdf_form.c b/pdf/pdf_form.c index ce932258..d74316fa 100644 --- a/pdf/pdf_form.c +++ b/pdf/pdf_form.c @@ -1440,7 +1440,7 @@ static void execute_action(pdf_document *doc, pdf_obj *obj, pdf_obj *a) pdf_obj *js = pdf_dict_gets(a, "JS"); if (js) { - char *code = get_string_or_stream(doc, js); + char *code = pdf_to_utf8(doc, js); fz_try(ctx) { pdf_js_setup_event(doc->js, obj); |