ByteScout PDF Extractor SDK – C# – PDF To XFDF

  • Home
  • /
  • Articles
  • /
  • ByteScout PDF Extractor SDK – C# – PDF To XFDF

ByteScout PDF Extractor SDK – C# – PDF To XFDF

Program.cs

using System;
using System.Collections.Generic;
using System.Text;
using Bytescout.PDFExtractor;
using System.Diagnostics;

namespace ConsoleApplication1
{
    class Program
    {
        static void Main(string[] args)
        {
            // Create Bytescout.PDFExtractor.XFDFExtractor instance
            XFDFExtractor extractor = new XFDFExtractor();
            extractor.RegistrationName = "demo";
            extractor.RegistrationKey = "demo";

            // Load PDF document
            // (!) We do not provide the sample document, please load your own.
            extractor.LoadDocumentFromFile("xfdf-form.pdf");

            extractor.SaveXFDFToFile("output.xml");

            // Cleanup
			extractor.Dispose();

            Console.WriteLine();
            Console.WriteLine("Extracted data saved to 'output.xml' file.");
            Console.WriteLine();
            Console.WriteLine("Press any key...");
            Console.ReadKey();
        }
    }
}


  Click here to get your Free Trial version of the SDK

prev
next