-
Notifications
You must be signed in to change notification settings - Fork 10k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JavaScript form function toFixed only displaying one digit in some cases #17540
Comments
The formatting seems to be clobbered at the following line, however I don't know what (if any) effect simply keeping all existing decimal places would have in the general case? pdf.js/src/scripting_api/field.js Line 261 in f8e3c79
|
Yep it's because we're using the pdf.js/src/scripting_api/event.js Line 315 in f8e3c79
|
…la#17540) And avoid to not format a field when the value is 0.
…la#17540) And avoid to not format a field when the value is 0.
Use the original value of a field when propagating event (fixes #17540)
Attach (recommended) or Link to PDF file here:
test.pdf
Configuration:
Steps to reproduce the problem:
What is the expected behavior?
For example in Chromium or Okular the resulting Numbers have a fixed number of decimal digits (3):
What went wrong?
In Firefox, only one decimal digit is shown for one value, while the other is properly displayed:
The underlying latex code used to produce the PDF:
The text was updated successfully, but these errors were encountered: