Fill PDF Form with Itextsharp
问题 I am trying to fill up a form with ITextsharp, and trying out the following code to get all the fields in the pdf: string pdfTemplate = @"c:\Temp\questionnaire.pdf"; PdfReader pdfReader = new PdfReader(pdfTemplate); StringBuilder sb = new StringBuilder(); foreach (var de in pdfReader.AcroFields.Fields) { sb.Append(de.Key.ToString() + Environment.NewLine); } But the foreach loop is always null count. Do I need to do something to file itself as I have tried the example from here and it works