Text field text direction in PDF form is wrong
Categories
(Firefox :: PDF Viewer, defect, P1)
Tracking
()
People
(Reporter: Tobbi, Assigned: calixte)
References
()
Details
(Keywords: regression, Whiteboard: [pdfjs-form-acroform])
Attachments
(2 files)
I am trying to fill out the following PDF form:
https://www.deutschepost.de/content/dam/dpag/images/B_b/Briefe_ins_Ausland/downloads/zollinhaltserklaerung_cn23_2015.pdf
When I try to enter text in any of the text fields on the page, the text is written from top to down instead of from left to right.
Assignee | ||
Comment 1•4 years ago
|
||
The page is rotated by 90 deg (clockwise) and each text area has a MK entry with a R=90 (counterclockwise).
PDF.js doesn't take into account MK::R
and it's likely the cause of the issue.
Updated•4 years ago
|
Comment 2•4 years ago
|
||
Reproducible on all latest Firefox versions, tested on macOS 10.15. Not reproducible on Chrome.
Assignee | ||
Updated•4 years ago
|
Updated•3 years ago
|
confirming Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:97.0) Gecko/20100101 Firefox/97.0
so it is not only MacOS but also Win 10.
Updated•3 years ago
|
Updated•3 years ago
|
Comment 4•2 years ago
|
||
I've ran across this same issue and managed to use mozregression to possibly pin this as related to https://bugzilla.mozilla.org/show_bug.cgi?id=1658934 (pushlog link from the first bad revision)
Attached is the PDF I discovered this on: a bank statement from my dad. (I checked for possible PII and couldn't find anything I thought might be sensitive.) The landing page for the form is enough to see the issue of rotated form labels and form inputs.
Assignee | ||
Comment 5•2 years ago
|
||
:travis_, it's exactly the same issue in your pdf.
Comment 6•2 years ago
|
||
Set release status flags based on info from the regressing bug 1658934
Comment 7•2 years ago
|
||
Set release status flags based on info from the regressing bug 1658934
Updated•2 years ago
|
Updated•2 years ago
|
Comment 8•2 years ago
|
||
(In reply to Travis Long [:travis_] from comment #4)
Created attachment 9276803 [details]
example.pdfI've ran across this same issue and managed to use mozregression to possibly pin this as related to https://bugzilla.mozilla.org/show_bug.cgi?id=1658934 (pushlog link from the first bad revision)
Attached is the PDF I discovered this on: a bank statement from my dad. (I checked for possible PII and couldn't find anything I thought might be sensitive.) The landing page for the form is enough to see the issue of rotated form labels and form inputs.
Travis, before bug 1658934 it was not even possible to fill the form, right?
Comment 9•2 years ago
|
||
Calixte just tested and confirmed that yeah, before that bug it wasn't possible to fill the form (as it is the bug where the filling of forms was enabled).
Updated•2 years ago
|
Updated•2 years ago
|
Comment 10•2 years ago
|
||
That's correct, at some point I thought I recalled this working, but I was mistaken and must have been recalling using an external app to enter into the form. Prior to bug 1658934 (and as I discovered while running mozregression), it was obviously not possible to enter data into form fields.
Assignee | ||
Updated•2 years ago
|
Comment 11•2 years ago
|
||
Comment 12•2 years ago
|
||
After the next PDF update, we should verify this is fixed, https://github.com/mozilla/pdf.js/issues/9596 is fixed, and everything linked to https://github.com/mozilla/pdf.js/issues/9596 is fixed too.
Updated•2 years ago
|
Updated•2 years ago
|
Updated•2 years ago
|
Comment 13•2 years ago
|
||
Reproduced the issue with Firefox 97.0a1 (20211213214351) on Windows 10x64 and attached link from comment 0. The text is written from top to down.
The issue is verified fixed with Firefox 104.0b2 (20220726185717) on Windows 10x64, macOS 11 and Ubuntu 20.04. The text is written from left to right in PDF form.
Updated•2 years ago
|
Comment 14•2 years ago
|
||
Based on comment #4, this bug contains a bisection range found by mozregression. However, the Regressed by
field is still not filled.
:calixte, if possible, could you fill the Regressed by
field and investigate this regression?
For more information, please visit auto_nag documentation.
Updated•2 years ago
|
Description
•