mozilla / pdf.js

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

XFA Rich Text not rendering correctly #13805

Open JDziurlaj opened 3 years ago

JDziurlaj commented 3 years ago

Attach (recommended) or Link to PDF file here: ESS ExpressVote Stencils.pdf Configuration:

Steps to reproduce the problem:

  1. enableXfa = true
  2. Open form

What is the expected behavior? (add screenshot) image

What went wrong? (add screenshot) Missing leaders, barcodes, text out of alignment image

ieugen commented 3 years ago

I've also noticed this with another PDF that has dynamic pages: https://gitlab.freedesktop.org/poppler/poppler/-/issues/1107

dclUnica_2021_15052021.pdf

calixteman commented 3 years ago

The documents contains few barcode elements and for now they aren't implemented. About the dashed lines, there are few:

<p style="text-align:right;tab-interval:0.5in;xfa-tab-stops:after leader (rule (dashed 1.5pt) page) 7.85in...

and the tab-stops stuff isn't implemented too (see page 61 in xfa v3.3 specs).