Typically, I am able to access form fields on a PDF using something like the following
Aspose.PDF.Document doc;
//document initialization code here
var field = doc.Form[fieldName]
However, on a new pdf I'm using I get the following message:
Unable to cast object of type 'Aspose.Pdf.InteractiveFeatures.Annotations.WidgetAnnotation' to type 'Aspose.Pdf.InteractiveFeatures.Forms.Field'.
Furthermore, when I inspect the doc.Count property I get 55 (which is the correct number), but when I query the lenth of the fields array with doc.Fields.length, I get just 25.
Seemingly, half the form fields are "WidgetAnnotations" and I've been unable to modify their value.
I tried a few workarounds, like trying to access the WidgetAnnotations collection via documenet.pages[index].annotations - but wasn't able to modify text in the underlying text box.
Any help would be appreciated.