I have attached a PDF which shows the problem: if you open the document with Adobe Acrobat Reader (I am using version 10.1), you won’t see any values in the Text Box fields. However if you click on a field, you will be able to see the value.
The code I have is:
Document pdfDocument = new Document(fileName);PdfForms.Field formField = pdfDocument.Form[fieldName] as PdfForms.Field;
if (formField is PdfForms.TextBoxField)What I am missing?
PdfForms.TextBoxField textBoxField = formField as PdfForms.TextBoxField;
textBoxField.Value = value;
I have also added “Before Click.png”, a screen shot of an empty field, and “After Click.png”, a screenshot when you click on the fied, all are taken from Acrobat Reader.