-
Notifications
You must be signed in to change notification settings - Fork 10.1k
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
[Bug]: PDF.js not Performing Calculations on Interactive PDF Forms #18561
Comments
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
If I enter a rate for Aluminum, then there's an error with either pdf.js or Acrobat, you should fix it and provide us a correct file. |
there is not issue in Acrobat, we have given you a same file that we received and it's breaking in pdf.js only. in acrobat is working fine. Test case is : Whenever we add quantity, Rate get calculated with the help of hidden filed and whenever rate updates the total also get updated immediately. |
Please don't tell me there's no issue... |
Please refer this recording, it's chrome browser and pdf.js |
It'd be nice to provide a clear STR instead of saying fuzzy things like "Enter values in the input fields.". |
The embedded JS code used to calculate fields value is either using unexisting fields or has some invalid JS code !! so when we evaluate the |
Hi @calixteman |
It isn't a problem to not have a basic test case if you aren't able to produce one, but the minimal thing you can do is to provide a clear STR, for example:
Expected results:
Actual results:
|
Hi @calixteman Steps to reproduce:
Expected behavior:
Screenshot of expected result (from Adobe Reader) Actual behavior:
|
Hi @calixteman |
Attach (recommended) or Link to PDF file
Lowes Measure sheet (2).pdf
Web browser and its version
Mozilla
Operating system and its version
Linux
PDF.js version
v4.5.136
Is the bug present in the latest PDF.js version?
Yes
Is a browser extension
No
Steps to reproduce the problem
What is the expected behavior?
PDF.js should perform the same calculations as Adobe Reader when values are entered into the input fields.
What went wrong?
PDF.js does not perform the calculations, and the total remains unchanged when values are entered into the input fields.
Link to a viewer
No response
Additional context
I am experiencing an issue with PDF.js when it comes to interactive PDF forms that involve calculations. I have a PDF document containing input fields for user data entry and hidden fields that perform calculations based on the input values. Specifically, when I open the document in Adobe Reader, entering values in the input fields automatically retrieves a per-unit price from a hidden field and calculates the total by multiplying the per-unit price by the quantity entered. However, this calculation is not happening when I open the same document using PDF.js.
The text was updated successfully, but these errors were encountered: