Closed Bug 1766987 Opened 3 years ago Closed 2 years ago

Display bug on pdf with specific formatted fields

Categories

(Firefox :: PDF Viewer, defect, P1)

Firefox 99
defect

Tracking

()

RESOLVED FIXED
103 Branch
Tracking Status
firefox-esr102 --- fixed

People

(Reporter: jlucschoon, Assigned: calixte)

References

Details

(Whiteboard: [pdfjs-form-js])

Attachments

(5 files)

Attached file CalculFactureEDF.pdf (deleted) —

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

Attached image Firefox_display (deleted) —
Attached image Edge_display (deleted) —

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.

Component: Untriaged → PDF Viewer
Assignee: nobody → cdenizet
Severity: -- → S3
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Priority: -- → P1
Whiteboard: [pdfjs-form-js]
  • 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

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.

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.

Commit merged into master by GitHub Authored by calixteman (calixteman)
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Depends on: 1772598
Resolution: --- → FIXED
Target Milestone: --- → 103 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: