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 Text Line Spacing Incorrect #13651

Open JDziurlaj opened 3 years ago

JDziurlaj commented 3 years ago

2015-Early-Learning-Assessment-Test-Incident-Report-Email-Submission.pdf Attach (recommended) or Link to PDF file here: https://education.ohio.gov/getattachment/Topics/Early-Learning/Guidance-About-Kindergarten/Early-Learning-Assessment/Early-Learning-Assessment-for-Programs-1/2015-Early-Learning-Assessment-Test-Incident-Report-Email-Submission.pdf.aspx

Configuration:

Steps to reproduce the problem:

  1. enableXfa = true
  2. Open form

What is the expected behavior? (add screenshot) Text does not overlap image

What went wrong? (add screenshot) Text is overlapping image

calixteman commented 3 years ago

I can't get the pdf, @JDziurlaj could you attach it to the bug please ?

marco-c commented 3 years ago

https://web.archive.org/web/20160905231157/https://education.ohio.gov/getattachment/Topics/Early-Learning/Guidance-About-Kindergarten/Early-Learning-Assessment/Early-Learning-Assessment-for-Programs-1/2015-Early-Learning-Assessment-Test-Incident-Report-Email-Submission.pdf.aspx

symtalha14 commented 3 years ago

Commit 58e1f5168836f16158be2ac34a06d6372cd32281 done by @calixteman yesterday fixes this issue as far as I can see. Please confirm.

JDziurlaj commented 3 years ago

The text is no longer overlapping, but still to close. image

symtalha14 commented 3 years ago

I checked it in Nightly. I think it's the same as in Acrobat Reader. This is how it looks Screenshot (26)