windowsforms-114463-controls-and-libraries-pdf-viewer-interactive-forms-export-and-import-interactive-form-data.md
This document describes how to export and import AcroForm data (interactive forms that contain PDF fields for gathering information interactively from a user) in various formats - FDF, XFDF, XML, and TXT.
Before exporting/importing AcroForm data, make sure you performed the following prerequisite actions:
The PDF Viewer’s toolbar creation is detailed in the corresponding section of the Getting Started topic.
To export interactive form data from a PDF document to supported formats:
To import interactive form data from FDF, XFDF, XML or TXT to a PDF document:
Click the Import button on the PDF toolbar (you can find this button in the Interactive Form tab of the Ribbon toolbar).
This invokes the Open dialog box, where you can select a file with interactive forms (for example, in FDF) to import data. To perform the import, click Open.
The imported interactive form data shows in a PDF document.
You can access extension methods by adding the DevExpress.Docs reference to your application.
Important
The Universal Subscription or an additional Office File API Subscription is required to use extension methods in production code. Please refer to the DevExpress Subscription page for pricing information.
To export interactive form data from a PDF document to one of the supported formats, call one of the PdfViewerExtensions.Export overloaded methods with the specified data format settings.
To import AcroForm data, call one of the PdfViewerExtensions.Import overloaded methods with data format settings or without them.
The PdfFormDataFormat enumeration lists the supported data formats.
The following examples show how to export and import interactive form data:
See Also