Open MallRoy opened 2 years ago
I could not found any handling of form field "total". Can you also send smartform2.pdf?
n you also send smartform2.pdf?
The approach i have tried and the pdf used is available here
Thanks. How should calculate the total? I'm missing a mathematical operation like total = a + b.
Thanks. How should calculate the total? I'm missing a mathematical operation like total = a + b.
If you open the smartform2.pdf with chrome default pdf reader or adobe it performs the scripting. I think the scripting execution functionalities are not available in pdf-lib
For this reason is my approach : handle the setting of the total value also in your javascript routine.
I have checked your pdf file and found this fields: Field:::Name>>>PAGE:::1 Field:::num1>>>PAGE:::1 Field:::num2>>>PAGE:::1 Field:::Text4>>>PAGE:::1 So i believe "Text4" is your total field ???
What were you trying to do?
We are trying to fill the interactive form values using node js and generating a new pdf. 1655466835858.pdf
How did you attempt to do it?
What actually happened?
The Calculations are not happening as expected. The interactive form retains the old value in the total field.
What did you expect to happen?
I expect the calculations to happen while generating the PDF. I expect 8000 in the total field after the file generation.
How can we reproduce the issue?
interactive form.zip
Version
1.17.1
What environment are you running pdf-lib in?
Node
Checklist
Additional Notes
No response