Log In
Home
Support
Demos
Documentation
Blogs
Training
Webinars
[Expand]General Information
[Collapse]WinForms Controls
  Prerequisites
 [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]Pivot Grid
  [Expand]Tree List
  [Expand]Chart Control
  [Expand]Diagrams
  [Expand]Gauges
  [Expand]Map Control
  [Expand]Scheduler
  [Expand]Spreadsheet
  [Expand]Rich Text Editor
  [Expand]Spell Checker
  [Expand]Form Layout Managers
  [Expand]Navigation Controls
  [Expand]Printing-Exporting
  [Collapse]PDF Viewer
   [Expand]Getting Started
   [Expand]Interactive Forms
   [Expand]Navigation
   [Expand]Interactivity
    Deployment
   [Collapse]Examples
     How to: Add a PDF Viewer at Design Time
     How to: Add a PDF Viewer via Code
     How to: Load a PDF Document from a File
     How to: Load a PDF Document from a Stream
     How to: Determine the Page Number of a Clicked PDF Page
     How to: Determine the PDF Content Type Corresponding to a Specific Document Area
     How to: Use the PDF Printer Settings
     How to: Export AcroForm Data to XML
     How to: Import AcroForm Data from XML
     How to: Replace Standard PDF Viewer Control Command with your own Custom Command
     How to: Custom Draw in the PDF Viewer
     How to: Add a Custom Bar Button Item to the Popup Menu
   Reporting
  [Expand]Snap
  [Expand]TreeMap Control
 [Expand]Common Features
  Get More Help
 [Expand]API Reference
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Document Server
[Expand]Reporting
[Expand]Report Server
[Expand]Dashboard
[Expand]eXpressApp Framework
[Expand]CodeRush
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation

How to: Import AcroForm Data from XML

Show Me

A complete sample project is available in the DevExpress Code Examples database at http://www.devexpress.com/example=T273679.

Important

The Universal Subscription or an additional Document Server Subscription is required to use this example in production code. Please refer to the DevExpress Subscription page for pricing information.

This example demonstrates how to import AcroForm data (interactive form data) from XML format to a PDF document.

You can also import the AcroForm data from FDF, XFDF, and TXT formats, as described below.

To import interactive forms from XML format:

  • load an interactive forms document (e.g., from a file path), in which the data will be imported, into the PDF Viewer using the PdfViewer.LoadDocument method;
  • call one of the PdfViewerExtensions.Import overloaded methods, for example, with a specified XML file that contains imported data.
Note

You may need to add the DevExpress.Docs reference to your application to access the PdfViewer.Import extension methods.

How would you rate this topic?​​​​​​​