Hello -
I have an issue with a particular PDF file where values that I write into a TextBoxField are not visible when viewed with Adobe Reader. Please help!
I have attached the PDF file in question. The field that does not get written is “Last Name (Family Name).” Here is some sample code:
Aspose.Pdf.License _license = new Aspose.Pdf.License();
_license.SetLicense(“Aspose.Pdf.lic”);
using (var _sourcePdf = new Aspose.Pdf.Document(“eefedi9.pdf”))
{
List<Aspose.Pdf.InteractiveFeatures.Forms.Field> _fields = _sourcePdf.Form.Fields.Where((w) => w.GetType() == typeof(Aspose.Pdf.InteractiveFeatures.Forms.TextBoxField)).ToList();
_fields[3].Value = “Draper”;
_sourcePdf.Save(“test123.pdf”);
}