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
- Open the attached PDF document in Adobe Reader.
- Enter values in the input fields.
- Observe that the total is automatically calculated using the hidden per-unit price field.
- Open the same PDF document using PDF.js.
- Enter values in the input fields.
- Notice that the total is not calculated.
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.
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.