This example demonstrates how to retrieve a list of form field names and specify field values of an interactive form.
You need a license for the DevExpress Office File API Subscription or DevExpress Universal Subscription to use this library in production code.
- Call the PdfDocumentProcessor.LoadDocument method to load a PDF document with an interactive form.
- Call the PdfDocumentProcessor.GetFormData method to retrieve the PdfFormData object that contains interactive form data.
- Specify the interactive form's field values. Call the PdfDocumentProcessor.ApplyFormData method to apply data to the interactive form and save the PDF document.
- Call the PdfDocumentProcessor.GetFormFieldNames method to retrieve a list of field names and iterate through the returned string collection.
Starting with v21.1, we recommend that you use the PdfDocumentFacade class to change the PDF document without access to its inner structure. Use the PdfDocumentFacade.AcroForm property to get interactive form field options. These options allow you to change form fields and appearance properties. Refer to the following example for information on how to use the PdfDocumentFacade class: PDF Document API - Change PDF Form Field Parameters.
PdfFormFilling.cs (VB: PdfFormFilling.vb)
- PDF Document API - Obtain a Checked Appearance Name for a Check Box
- PDF Document API - Obtain a Checked Appearance Name for Each Radio Button in the Radio Group
Interactive Forms in PDF Documents
(you will be redirected to DevExpress.com to submit your response)