Open sictransit opened 3 years ago
Mea culpa!
It seems I failed to enable XFA.
The latest and greatest version of PDF.js actually renders the form. Not well, but that's another issue.
@sictransit let's keep this open to track rendering this form as it is supposed to be rendered (it is a pretty complex one!)
Fair enough! I'm preparing a filled out form now and I'll post an example here. It will take some time because, as you said, it's pretty complex.
The empty form actually renders more or less OK, but I'm getting lots of exceptions with a real one.
I've edited the issue description now, to better reflect the actual problem. I've also attached screenshots and a filled out form for test.
The latest pre-release (https://github.com/mozilla/pdf.js/releases/tag/v2.11.338) certainly does a much better job. All the information is there, except for scanned signatures.
Issues I've noticed:
Attach (recommended) or Link to PDF file here:
Market Authorisation Application form from the European Medicines Agency.
The screenshots and attached file is a "variation form" that is a bit smaller (and easier to fill out).
Filled out version of the variation form.
Configuration:
Steps to reproduce the problem:
What is the expected behavior? (add screenshot)
The expected behavior is what Adobe Reader renders, or at least something similar. I am aware that XFA support is still experimental, at best.
What went wrong? (add screenshot)
Some parts render OK, but the more complex parts look really strange.
There are also lots of warnings like this in the console:
Link to a viewer (if hosted on a site other than mozilla.github.io/pdf.js or as Firefox/Chrome extension): N/A