Can an application read the fields in a pdf and change the field names? I'm mostly referring to text fields and check boxes, but I suppose if it's possible it'd work for any field or not at all, correct?
Can we programatically change field names in the pdf?
Re: Can we programatically change field names in the pdf?
Support · Aug 12, 2015Hello,
Yes, it is possible to change the names of all form fields. Here is the sample code that shows how to retrieve a form field and change its name:
MergeDocument document = new MergeDocument("Form.pdf");
FormField field = document.Form.Fields["Current_Name"];
field.Name = "Changed_Name";
document.Draw("output.pdf");
Thanks,
ceTe Software Support Team.
Re: Can we programatically change field names in the pdf?
Forum member · Aug 12, 2015
Well that just made my life easier. Thanks!