ByteScout Premium 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 Premium Suite – VB.NET – Read values from form fields with pdf extractor sdk

  • Home
  • /
  • Articles
  • /
  • ByteScout Premium 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 Premium Suite

If you want to learn more then this tutorial will show how to read values from form fields with pdf extractor sdk in VB.NET

An easy to understand sample source code to learn how to read values from form fields with pdf extractor sdk in VB.NET ByteScout Premium Suite: the bundle that includes twelve SDK products from ByteScout including tools and components for PDF, barcodes, spreadsheets, screen video recording. It can read values from form fields with pdf extractor sdk in VB.NET.

Want to save time? You will save a lot of time on writing and testing code as you may just take the VB.NET code from ByteScout Premium Suite for read values from form fields with pdf extractor sdk below and use it in your application. 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! Enjoy writing a code with ready-to-use sample VB.NET codes.

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)

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 Premium Suite Home Page

Explore ByteScout Premium Suite Documentation

Explore Samples

Sign Up for ByteScout Premium 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 Premium Suite Home Page

Explore ByteScout Premium Suite Documentation

Explore Samples

Sign Up for ByteScout Premium Suite Online Training

ON-DEMAND REST WEB API

Get Your API Key

Explore Web API Docs

Explore Web API Samples

Tutorials:

prev
next