The following code snippet for ByteScout PDF Suite works best when you need to quickly convert pdf to xfdf with pdf extractor sdk in your VB.NET application. Simply copy and paste in your VB.NET project or application you and then run your app! Check VB.NET sample code samples to see if they respond to your needs and requirements for the project.
You can download free trial version of ByteScout PDF Suite from our website to see and try many others source code samples for VB.NET.
Imports System Imports System.Collections.Generic Imports System.Text Imports Bytescout.PDFExtractor Imports System.Diagnostics Namespace ConsoleApplication1 Class Program Shared Sub Main(ByVal args As String()) ' Create Bytescout.PDFExtractor.XFDFExtractor instance Dim extractor As 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() End Sub End Class End Namespace