An easy to understand guide on how to convert PDF XFA form to XML with PDF extractor SDK in C# with this source code sample. ByteScout Premium Suite: the set that includes 12 SDK products from ByteScout including tools and components for PDF, barcodes, spreadsheets, screen video recording. It can convert PDF XFA form to XML with PDF extractor SDK in C#.
Want to save time? You will save a lot of time on writing and testing code as you may just take the C# code from ByteScout Premium Suite for convert PDF XFA form to XML with PDF extractor SDK below and use it in your application. Simply copy and paste in your C# project or application you and then run your app! Want to see how it works with your data then code testing will allow the function to be tested and work properly.
The trial version of ByteScout Premium Suite can be downloaded for free from our website. It also includes source code samples for C# and other programming languages.
On-demand (REST Web API) version:
Web API (on-demand version)
On-premise offline SDK for Windows:
60 Day Free Trial (on-premise)
using System; using Bytescout.PDFExtractor; namespace XFAFormToXML { class Program { static void Main(string[] args) { // Create Bytescout.PDFExtractor.XFAFormExtractor instance XFAFormExtractor extractor = new XFAFormExtractor(); extractor.RegistrationName = "demo"; extractor.RegistrationKey = "demo"; // Load PDF document // (!) We do not provide the sample document, please load your own. extractor.LoadDocumentFromFile("samplexfa.pdf"); // Enumerate XFA form content part types foreach (XFAFormContentType contentType in Enum.GetValues(typeof(XFAFormContentType))) { // Get count of content parts of specified type int partCount = extractor.GetCount(contentType); // Save parts as XML files for (int i = 0; i < partCount; i++) { string fileName = contentType.ToString() + i + ".xml"; extractor.SaveToFile(contentType, i, fileName); Console.WriteLine("Saved form part " + fileName); } } // Cleanup extractor.Dispose(); Console.WriteLine(); Console.WriteLine("Press any key to continue..."); Console.ReadLine(); } } }
60 Day Free Trial or Visit ByteScout Premium Suite Home Page
Explore ByteScout Premium Suite Documentation
Explore Samples
Sign Up for ByteScout Premium Suite Online Training
Get Your API Key
Explore Web API Docs
Explore Web API Samples
60 Day Free Trial or Visit ByteScout Premium Suite Home Page
Explore ByteScout Premium Suite Documentation
Explore Samples
Sign Up for ByteScout Premium Suite Online Training
Get Your API Key
Explore Web API Docs
Explore Web API Samples
also available as: