ByteScout Data Extraction Suite - VB.NET - Read values from form fields with pdf extractor sdk - ByteScout
Announcement
Our ByteScout SDK products are sunsetting as we focus on expanding new solutions.
Learn More Open modal
Close modal
Announcement Important Update
ByteScout SDK Sunsetting Notice
Our ByteScout SDK products are sunsetting as we focus on our new & improved solutions. Thank you for being part of our journey, and we look forward to supporting you in this next chapter!

ByteScout Data Extraction Suite – VB.NET – Read values from form fields with pdf extractor sdk

  • Home
  • /
  • Articles
  • /
  • ByteScout Data Extraction Suite – VB.NET – Read values from form fields with pdf extractor sdk

How to read values from form fields with pdf extractor sdk in VB.NET with ByteScout Data Extraction Suite

Learn to code in VB.NET to read values from form fields with pdf extractor sdk with this step-by-step tutorial

Read values from form fields with pdf extractor sdk is simple to apply in VB.NET if you use these source codes below. ByteScout Data Extraction Suite can read values from form fields with pdf extractor sdk. It can be applied from VB.NET. ByteScout Data Extraction Suite is the set that includes 3 SDK products for data extraction from PDF, scans, images and from spreadsheets: PDF Extractor SDK, Data Extraction SDK, Barcode Reader SDK.

Want to quickly learn? This fast application programming interfaces of ByteScout Data Extraction Suite for VB.NET plus the guidelines and the code below will help you quickly learn how to read values from form fields with pdf extractor sdk. 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. Enjoy writing a code with ready-to-use sample codes in VB.NET.

You can download free trial version of ByteScout Data Extraction Suite from our website with this and other source code samples for VB.NET.

On-demand (REST Web API) version:
 Web API (on-demand version)

On-premise offline SDK for Windows:
 60 Day Free Trial (on-premise)

Program.vb
      
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

ON-PREMISE OFFLINE SDK

60 Day Free Trial or Visit ByteScout Data Extraction Suite Home Page

Explore ByteScout Data Extraction Suite Documentation

Explore Samples

Sign Up for ByteScout Data Extraction Suite Online Training

ON-DEMAND REST WEB API

Get Your API Key

Explore Web API Docs

Explore Web API Samples

VIDEO

ON-PREMISE OFFLINE SDK

60 Day Free Trial or Visit ByteScout Data Extraction Suite Home Page

Explore ByteScout Data Extraction Suite Documentation

Explore Samples

Sign Up for ByteScout Data Extraction Suite Online Training

ON-DEMAND REST WEB API

Get Your API Key

Explore Web API Docs

Explore Web API Samples

Tutorials:

prev
next