You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am encountering an issue while using the Mozilla PDF.js library to render PDFs on my webpage. The PDF includes several input fields and formulas. There is a specific problem with the calculation of totals based on the quantity selected from a dropdown menu in the "QTY" column.
Here is a screenshot demonstrating the issue. The total for each row is recalculated incorrectly when the quantity in any row is changed.
Web browser and its version
firefox 127.0
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
Render the PDF using Mozilla PDF.js on a webpage.
The PDF contains a column labeled "QTY" with a dropdown to select the quantity.
Selecting a quantity value triggers a formula to calculate the total for that row (Total = QTY * Price per).
The expectation is that the total calculation should only affect the row where the quantity was changed.
What is the expected behavior?
When a quantity is selected from the dropdown in the "QTY" column, the total should be calculated only for the corresponding row.
What went wrong?
Changing the quantity in the dropdown causes the total to be recalculated for all rows in the PDF, leading to an incorrect grand total.
Link to a viewer
No response
Additional context
No response
The text was updated successfully, but these errors were encountered:
Attach (recommended) or Link to PDF file
Please find document calculation-issue.pdf
I am encountering an issue while using the Mozilla PDF.js library to render PDFs on my webpage. The PDF includes several input fields and formulas. There is a specific problem with the calculation of totals based on the quantity selected from a dropdown menu in the "QTY" column.
Here is a screenshot demonstrating the issue. The total for each row is recalculated incorrectly when the quantity in any row is changed.
Web browser and its version
firefox 127.0
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?
When a quantity is selected from the dropdown in the "QTY" column, the total should be calculated only for the corresponding row.
What went wrong?
Changing the quantity in the dropdown causes the total to be recalculated for all rows in the PDF, leading to an incorrect grand total.
Link to a viewer
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: