mozilla / pdf.js

PDF Reader in JavaScript
https://mozilla.github.io/pdf.js/
Apache License 2.0
47.83k stars 9.9k forks source link

XFA - missing content on Ontario Lease #13611

Open jrmuizel opened 3 years ago

jrmuizel commented 3 years ago

Attach (recommended) or Link to PDF file here: http://www.forms.ssb.gov.on.ca/mbs/ssb/forms/ssbforms.nsf/GetFileAttach/047-2229E~1/$File/2229E.pdf

Configuration:

Steps to reproduce the problem:

  1. Load the PDF and compare to Adobe Reader or Chrome Canary with XFA turned on. (Chrome has lots of blank pages but seems to draw more stuff)
marco-c commented 3 years ago

2229E.pdf

marco-c commented 3 years ago

This looks like a dynamic form.

calixteman commented 3 years ago

Yes it's a dynamic form but likely something is wrong in the layout: I'll have a look on it.

jrmuizel commented 3 years ago

This PDF seems to draw correctly now. Most of the form controls are unusable though.

jrmuizel commented 3 years ago

This seems to work well enough now. Certainly much better than Chrome Canary

marco-c commented 3 years ago

Let's keep this open for the JS parts.

jrmuizel commented 3 years ago

What's the status of the JS stuff?

calixteman commented 3 years ago

For now: there are no plan to implement JS stuff but it's something we likely consider in the future. From my pov, it will be a bit challenging because thanks JS, layout will become dynamic (it's possible to add pages, remove pages, add some text in a place which will move a lot of elements on the next page....). So compared to what we did for classic Acroforms, my guess is that it'll be "slightly" harder.