Skip to main content
A newer version of this page is available. .

How to: Export Interactive Form Data to XML

Important

You require a license to the DevExpress Office File API or DevExpress Universal Subscription to use these examples in production code. Refer to the DevExpress Subscription page for pricing information.

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

You can also export the AcroForm data to FDF, XFDF, and TXT formats.

using DevExpress.Pdf;

namespace ExportInteractiveForms {
    class Program {
        static void Main(string[] args) {

            using (PdfDocumentProcessor processor = new PdfDocumentProcessor()) {

                // Load a PDF document with AcroForm data. 
                processor.LoadDocument("..\\..\\InteractiveForm.pdf");

                // Export AcroForm data to XML format.
                processor.Export("..\\..\\InteractiveForm.xml", PdfFormDataFormat.Xml);
            }
        }
    }
}
See Also