ByteScout PDF Suite - VB.NET - Extract filled pdf form data 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 PDF Suite – VB.NET – Extract filled pdf form data with pdf extractor sdk

  • Home
  • /
  • Articles
  • /
  • ByteScout PDF Suite – VB.NET – Extract filled pdf form data with pdf extractor sdk

How to extract filled pdf form data with pdf extractor sdk in VB.NET and ByteScout PDF Suite

If you want to learn more then this tutorial will show how to extract filled pdf form data with pdf extractor sdk in VB.NET

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 be applied to extract filled pdf form data with pdf extractor sdk using VB.NET.

The SDK samples given below describe how to quickly make your application do extract filled pdf form data with pdf extractor sdk in VB.NET with the help of ByteScout PDF Suite. Simply copy and paste in your VB.NET project or application you and then run your app! If you want to use these VB.NET sample examples in one or many applications then they can be used easily.

Our website gives trial version of ByteScout PDF Suite for free. It also includes documentation and source code samples.

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

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

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

ON-PREMISE OFFLINE SDK

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

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

Explore ByteScout PDF Suite Documentation

Explore Samples

Sign Up for ByteScout PDF Suite Online Training

ON-DEMAND REST WEB API

Get Your API Key

Explore Web API Docs

Explore Web API Samples

Tutorials:

prev
next