Display bug on pdf with specific formatted fields
Categories
(Firefox :: PDF Viewer, defect, P1)
Tracking
()
Tracking | Status | |
---|---|---|
firefox-esr102 | --- | fixed |
People
(Reporter: jlucschoon, Assigned: calixte)
References
Details
(Whiteboard: [pdfjs-form-js])
Attachments
(5 files)
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.84 Safari/537.36 OPR/85.0.4341.75
Steps to reproduce:
I opened a local pdf file: "CalculFactureEDF.pdf"
This pdf contains javascript calculation fields, with specific numerical formatting.
This pdf was made with Acrobat DC 2022.
Actual results:
Fields formatting are not taken into account when I open the file :
Fields are just filled in with raw values !
If I change values, formatting is applied
Expected results:
Formatting should be taken into account
Formatting are taken into account when I open this file on other Internet browsers (such as Opera, Chrome, Edge) and of course if I open it with Acrobat Reader DC.
I think, to solve this issue, pdf javascript code should be started automatically once, for first display, to apply formatting
Reporter | ||
Comment 1•3 years ago
|
||
Reporter | ||
Comment 2•3 years ago
|
||
Comment 3•3 years ago
|
||
The Bugbug bot thinks this bug should belong to the 'Firefox::PDF Viewer' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.
Assignee | ||
Updated•3 years ago
|
Reporter | ||
Comment 4•3 years ago
|
||
- Input fields have a green border
- Other fields are calculated output data
Both input and output fields have specific formatting
If I click on an input field, and then outside :
- This input field becomes formatted, but all other input fields remain with raw data
- All calculated output fields become formatted
Assignee | ||
Comment 5•3 years ago
|
||
JS stuff is ran because of an explicit PageAction (or DocumentAction) or because the user interacts in some way with the form.
Here, we must extract the field formatted values from the appearance stream and use them when a field doesn't have the focus.
Assignee | ||
Comment 6•2 years ago
|
||
I checked how it works in Acrobat and I was wrong: the format actions are ran on the various fields when the document is open.
Comment 7•2 years ago
|
||
Comment 8•2 years ago
|
||
Updated•2 years ago
|
Updated•2 years ago
|
Description
•