I have a completed PDF XFA form that I need to mine the field values input by the user. Is this possible with ASPOSE.PDF C#?
Aspose.Pdf.Facades.Form form = new Aspose.Pdf.Facades.Form();
form.BindPdf(@in_pdf_filename);
foreach (string nm in form.FieldNames)
{
Console.WriteLine(“Field Name{0}\t\tValue: {1}”, nm, form.GetField(nm));
}
All the data is empty when i try to read the values. I retrieve no data and eventually get an exception: System.NullReferenceException: ‘Object reference not set to an instance of an object.’.
Even if i point specifically at a field name I know has data, I get nothing in return.
I just need to retrieve all the input data by the form user.
Thanks