Closed Bug 1675139 Opened 4 years ago Closed 2 years ago

Text field text direction in PDF form is wrong

Categories

(Firefox :: PDF Viewer, defect, P1)

defect

Tracking

()

VERIFIED FIXED
104 Branch
Tracking Status
firefox-esr91 --- wontfix
firefox-esr102 --- fixed
firefox84 --- wontfix
firefox85 --- wontfix
firefox86 --- wontfix
firefox87 --- wontfix
firefox100 --- wontfix
firefox101 --- wontfix
firefox102 --- wontfix
firefox103 --- wontfix
firefox104 --- verified

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.

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.

Severity: -- → S2

Reproducible on all latest Firefox versions, tested on macOS 10.15. Not reproducible on Chrome.

Assignee: nobody → cdenizet

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.

OS: macOS → All
Hardware: x86_64 → All
Whiteboard: [pdfjs-form-acroform]
Attached file example.pdf

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.

:travis_, it's exactly the same issue in your pdf.

Regressed by: 1658934

Set release status flags based on info from the regressing bug 1658934

Set release status flags based on info from the regressing bug 1658934

(In reply to Travis Long [:travis_] from comment #4)

Created attachment 9276803 [details]
example.pdf

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.

Travis, before bug 1658934 it was not even possible to fill the form, right?

Flags: needinfo?(tlong)

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).

Flags: needinfo?(tlong)
Keywords: regression
Keywords: regression
No longer regressed by: 1658934

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.

Priority: -- → P1

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.

Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Flags: qe-verify+

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.

Status: RESOLVED → VERIFIED
Flags: qe-verify+
Depends on: 1780839
Target Milestone: --- → 104 Branch

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.

Flags: needinfo?(cdenizet)
Keywords: regression
Flags: needinfo?(cdenizet)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: