Skip to content

Retrieve a list of interactive form fields' names and use the PdfFormData object to fill form fields in code.

License

Notifications You must be signed in to change notification settings

DevExpress-Examples/pdf-document-api-fill-interactive-form-fields

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PDF Document API - Fill Interactive Form Fields

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.

Implementation Details

  1. Call the PdfDocumentProcessor.LoadDocument method to load a PDF document with an interactive form.
  2. Call the PdfDocumentProcessor.GetFormData method to retrieve the PdfFormData object that contains interactive form data.
  3. Specify the interactive form's field values. Call the PdfDocumentProcessor.ApplyFormData method to apply data to the interactive form and save the PDF document.
  4. 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.

Files to Look At

PdfFormFilling.cs (VB: PdfFormFilling.vb)

More Examples

Documentation

Interactive Forms in PDF Documents

Does this example address your development requirements/objectives?

(you will be redirected to DevExpress.com to submit your response)

About

Retrieve a list of interactive form fields' names and use the PdfFormData object to fill form fields in code.

Topics

Resources

License

Stars

Watchers

Forks