Hi,
I downloaded Spire.PDF tonight. I need to fill in the fields in a PDF form and then print the document. When I followed your code sample, it is not finding any fields. What might I be doing wrong? Below is a snippet of my code and I've attached the exact file that I need to fill in via code. Thanks so much.
PdfDocument pdf;
pdf = new PdfDocument();
pdf.LoadFromFile(@"M:\Forms\CFIA - Phyto Application.pdf", Spire.Pdf.FileFormat.PDF);
PdfFormWidget formWidget = pdf.Form as PdfFormWidget;
int x = pdf.Form.Fields.List.Count;
for (int i = 0; i < formWidget.FieldsWidget.List.Count; i++)
{
}