This sample source code below will display you how to extract filled pdf form data with pdf extractor sdk in VB.NET. ByteScout Premium Suite can extract filled pdf form data with pdf extractor sdk. It can be applied from VB.NET. ByteScout Premium Suite is the bundle that includes twelve SDK products from ByteScout including tools and components for PDF, barcodes, spreadsheets, screen video recording.
Want to quickly learn? This fast application programming interfaces of ByteScout Premium Suite for VB.NET plus the guidelines and the code below will help you quickly learn how to extract filled pdf form data with pdf extractor sdk. This VB.NET sample code is all you need for your app. Just copy and paste the code, add references (if needs to) and you are all set! Further improvement of the code will make it more robust.
Trial version of ByteScout Premium Suite is available for free. Source code samples are included to help you with your VB.NET app.
On-demand (REST Web API) version:
Web API (on-demand version)
On-premise offline SDK for Windows:
60 Day Free Trial (on-premise)
Imports Bytescout.PDFExtractor Imports System.Xml Module Module1 Sub Main() ' Create XMLExtractor instance Dim extractor As XMLExtractor = New XMLExtractor() extractor.RegistrationName = "demo" extractor.RegistrationKey = "demo" ' Load sample PDF document extractor.LoadDocumentFromFile(".\filled_form.pdf") ' Get PDF document text as XML Dim xmlText As String = extractor.GetXML() ' Load XML Dim xmlDocument As XmlDocument = New XmlDocument() XmlDocument.LoadXml(XmlText) ' Select all "control" nodes Dim formControls As XmlNodeList = xmlDocument.SelectNodes("//control") If (formControls IsNot Nothing) Then For Each formControl As XmlNode In formControls Dim typeAttribute = formControl.Attributes("type") If (typeAttribute.Value = "editbox") Then ' Show filled textboxes If (Not String.IsNullOrEmpty(formControl.InnerText)) Then Console.WriteLine("EDITBOX " + formControl.Attributes("id").Value + ": " + formControl.InnerText) End If ElseIf (typeAttribute.Value = "checkbox") Then ' Show checked checkboxes If (formControl.Attributes("state").Value = "1") Then Console.WriteLine("CHECKBOX " + formControl.Attributes("id").Value + ": " + formControl.Attributes("state").Value) End If End If Next formControl End If ' Cleanup extractor.Dispose() Console.WriteLine() Console.WriteLine("Press any key...") Console.ReadKey() End Sub End Module
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: