Is it possible to add calculated fields to an existing pdf form via Aspose.Pdf?
kindly,
linda
I am able to calculate fields using Javascript. However if I also extend the field on other pages using the AddFieldAppearance the action no longer works. Thank you for any feedback.
Hi Linda,
Thanks for using our API’s.
You may try using following code snippet to get/iterate through all fields in PDF document and using this approach, you can get form fields count. [Get Values from all the Fields of PDF Document](("[[BL]]https://docs.aspose.com/pdf/net/get-values-from-all-fields/
[[/BL]])
You can also get the names of all fields in PDF document and get the count of form fields.
[C#]
//First a input pdf file should be assigned
Aspose.Pdf.Facades.Form form = new Aspose.Pdf.Facades.Form(@"c:\pdftest\FilledForm.pdf");
//get all field names
String[] allfields = form.FieldNames;
Console.WriteLine(allfields.Length);
Is it possible to be triggered by the onLostFocus event of another field which was created using the AddFieldAppearance property? The form I’m trying to build includes a calculated field that gets re-figured when an existing form field changes. I get that js will not run on AddFieldAppearance fields.
Hi Linda,