I have a PDF form with several text fields. The values โโentered in these fields are used to calculate values โโin other fields (calculated fields are read-only).
When I open the form in Adobe Reader and fill out the field, the calculated fields are automatically recalculated.
However, I use iTextSharp to fill in the fields, smooth out the resulting form, and then stream the flattened form back to the user over the Internet.
This part works just fine, except that computed fields are never computed. I assume that since no user events (such as keystrokes or focus or blur) are triggered, calculations do not occur.
Obviously, I could remove the calculations from the fillable form and do it all on the server, as I fill in the fields, but I would like the fillable form to be used by people as well as the server.
Does anyone know how to force the calculations?
EDIT: I don't feel too much iText / iTextSharp love here ...
Here are some more details. Setting stamper.AcroFields.GenerateAppearances to true does not help.
I think the answer lies somewhere in the actions of the page, but I donโt know how to call it ...
c # pdf pdf-generation itext itextsharp
CMPalmer
source share