diff options
Diffstat (limited to 'source/pdf/pdf-js.c')
-rw-r--r-- | source/pdf/pdf-js.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/pdf/pdf-js.c b/source/pdf/pdf-js.c index c3e148fe..bc74eedc 100644 --- a/source/pdf/pdf-js.c +++ b/source/pdf/pdf-js.c @@ -646,7 +646,7 @@ static void pdf_js_load_document_level(pdf_js *js) { pdf_obj *fragment = pdf_dict_get_val(ctx, javascript, i); pdf_obj *code = pdf_dict_get(ctx, fragment, PDF_NAME_JS); - char *codebuf = pdf_to_utf8(ctx, doc, code); + char *codebuf = pdf_to_utf8(ctx, code); pdf_js_execute(js, codebuf); fz_free(ctx, codebuf); } |