I have a pdf that was created as an XFA document. The requirement is the user will fill out the PDF and save it, then my program will take that document, programmatically open it, loop through the form fields to get the values and insert a record into a database.
The problem is that when I load the doc, the form shows no fields. The formWidget.FieldsWidget.List.Count is 0.
Does anyone know if the spire.pdf api can handle an XFA form and if so, how do I do it?
Dim doc As New PdfDocument()
doc.LoadFromFile("C:\Forms\MyTestForm.pdf")
Dim formWidget As PdfFormWidget = TryCast(doc.Form, PdfFormWidget)
For i As Integer = 0 To formWidget.FieldsWidget.List.Count - 1