static void Main(string[] args) { PdfLoadedDocument loadedDocument = new PdfLoadedDocument(@"../../../../../../Data/FormFill.pdf"); //Load an existing form PdfLoadedForm loadedForm = loadedDocument.Form; //Export the existing PDF form data to xml file loadedForm.ExportData("Export.xml", DataFormat.Xml, @"AcroForm1"); //Close the document loadedDocument.Close(true); PdfDocument.ClearFontCache(); }