[Expand]General Information
[Collapse]WinForms Controls
 [Expand]What's Installed
 [Expand]Build an Application
 [Collapse]Controls and Libraries
  [Expand]Forms and User Controls
  [Expand]Messages, Notifications and Dialogs
  [Expand]Editors and Simple Controls
  [Expand]Ribbon, Bars and Menu
  [Expand]Application UI Manager
  [Expand]Docking Library
  [Expand]Data Grid
  [Expand]Vertical Grid
  [Expand]Property Grid
  [Expand]Pivot Grid
  [Expand]Tree List
  [Expand]Chart Control
  [Expand]Map Control
  [Expand]Rich Text Editor
  [Expand]Spell Checker
  [Expand]Form Layout Managers
  [Expand]Navigation Controls
  [Collapse]PDF Viewer
   [Expand]Getting Started
    Coordinate Systems
   [Collapse]Access and Edit Document Content
    [Collapse]Interactive Forms
      Interactive Form Filling
      Export and Import Interactive Form Data
     File Attachment
     Text Markup Annotations
     Content Copying
  [Expand]TreeMap Control
  [Expand]Sunburst Control
 [Expand]Common Features
  Get More Help
 [Expand]API Reference
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Office File API
[Expand]Report and Dashboard Server
[Expand]eXpressApp Framework
[Expand]eXpress Persistent Objects
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation
View this topic on docs.devexpress.com (Learn more)

Export and Import Interactive Form Data

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.

Expanded Prerequisite

Before exporting/importing AcroForm data, make sure you performed the following prerequisite actions:

Expanded Export/Import using the PDF Viewer's toolbar

The PDF Viewer's toolbar creation is detailed in the corresponding section of Lesson 1 - Creating a PDF Viewer.


To export interactive form data from a PDF document to supported formats:

  • Click the Export button on the PDF Viewer's toolbar (you can find this button in the Interactive Form tab of the Ribbon toolbar).

    The Save As dialog appears.

    In this dialog, specify a file name and the format in which interactive form data should be exported (FDF, XFDF, XML or TXT). To save the document, click Save as shown above.


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.

Expanded Export/Import via extension methods

You can access extension methods by adding the DevExpress.Docs reference to your application.


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:

Expanded See Also

Is this topic helpful?​​​​​​​