Skip to content

[Bug]: PDF.js not Performing Calculations on Interactive PDF Forms #18561

Description

@paritosh-mahale

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

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

image

What went wrong?

PDF.js does not perform the calculations, and the total remains unchanged when values are entered into the input fields.

image

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.

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions