These source code samples are assembled by their programming language and functions they apply. ByteScout PDF Suite is the set that includes 6 SDK products to work with PDF from generating rich PDF reports to extracting data from PDF documents and converting them to HTML. This bundle includes PDF (Generator) SDK, PDF Renderer SDK, PDF Extractor SDK, PDF to HTML SDK, PDF Viewer SDK and PDF Generator SDK for Javascript. It can read values from form fields with pdf extractor sdk in VB.NET.
The following code snippet for ByteScout PDF Suite works best when you need to quickly read values from form fields with pdf extractor sdk in your VB.NET application. IF you want to implement the functionality, just copy and paste this code for VB.NET below into your code editor with your app, compile and run your application. Want to see how it works with your data then code testing will allow the function to be tested and work properly.
All these programming tutorials along with source code samples and ByteScout free trial version are available for download from our website.
On-demand (REST Web API) version:
Web API (on-demand version)
On-premise offline SDK for Windows:
60 Day Free Trial (on-premise)
Imports System.Xml
Imports Bytescout.PDFExtractor
Module Program
Sub Main()
Try
' Create XMLExtractor interface
Using extractor As New XMLExtractor("demo", "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 (Not (formControls) Is Nothing) Then
For Each formControl As XmlNode In formControls
Dim typeAttribute As XmlAttribute = formControl.Attributes("type")
' Get filled textboxes
If (typeAttribute.Value = "editbox") Then
If Not String.IsNullOrEmpty(formControl.InnerText) Then
Console.WriteLine(("EDITBOX " + (formControl.Attributes("id").Value + (": " + formControl.InnerText))))
End If
End If
' Get checked checkboxes
If (typeAttribute.Value = "checkbox") Then
If (formControl.Attributes("state").Value = "1") Then
Console.WriteLine(("CHECKBOX " _
+ (formControl.Attributes("id").Value + (": " + formControl.Attributes("state").Value))))
End If
End If
Next
End If
End Using
Catch ex As Exception
Console.WriteLine(ex.Message)
End Try
Console.WriteLine()
Console.WriteLine("Press any key to exit...")
Console.ReadLine()
End Sub
End Module
60 Day Free Trial or Visit ByteScout PDF Suite Home Page
Explore ByteScout PDF Suite Documentation
Explore Samples
Sign Up for ByteScout PDF Suite Online Training
Get Your API Key
Explore Web API Docs
Explore Web API Samples
60 Day Free Trial or Visit ByteScout PDF Suite Home Page
Explore ByteScout PDF Suite Documentation
Explore Samples
Sign Up for ByteScout PDF Suite Online Training
Get Your API Key
Explore Web API Docs
Explore Web API Samples
also available as: