diff options
Diffstat (limited to 'pdf/pdf_js.c')
-rw-r--r-- | pdf/pdf_js.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pdf/pdf_js.c b/pdf/pdf_js.c index 23b51df6..266bc1c7 100644 --- a/pdf/pdf_js.c +++ b/pdf/pdf_js.c @@ -778,7 +778,7 @@ pdf_js *pdf_new_js(pdf_document *doc) js->doc = doc; /* Find the form array */ - root = pdf_dict_gets(doc->trailer, "Root"); + root = pdf_dict_gets(pdf_trailer(doc), "Root"); acroform = pdf_dict_gets(root, "AcroForm"); js->form = pdf_dict_gets(acroform, "Fields"); |