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.
Note
A complete sample project is available at https://github.com/DevExpress-Examples/how-to-export-acroform-data-to-xml-t491302
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