Can Aspose Pdf access the field names in a secured PDF file

Hi,


We have need to fill out forms that are provided by the New York State Department of Motor Vehicles. In the past they provided non secure forms and we could fill in the fields by the field name. The latest version of their form is a secured PDF document and you can no longer view the field names.

Can the Aspose PDF library retrieve the field names? I have attached a copy of the PDF file to this message.

thanks,
Chris Miller

Hi Chris


Thanks for your inquiry. Please check following code to retrieve form field names. Hopefully it will help you to accomplish the task. Moreover please also check documentation link to work with forms using Aspose.Pdf.

Document pdf = new Document(myDir

  • “ds870.pdf”);<o:p></o:p>

foreach (Field formField in pdf.Form)

{

Console.WriteLine("Field Name : {0} ", formField.PartialName);

Console.WriteLine("Value : {0} ", formField.Value);

}

Console.ReadLine();



Please feel free to contact us for any further assistance.

Best Regards,