ByteScout Data Extraction Suite - VB.NET - Extract filled pdf form data with pdf extractor sdk - ByteScout

ByteScout Data Extraction Suite – VB.NET – Extract filled pdf form data with pdf extractor sdk

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

This code in VB.NET shows how to extract filled pdf form data with pdf extractor sdk with this how to tutorial

An easy to understand guide on how to extract filled pdf form data with pdf extractor sdk in VB.NET with this source code sample. 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. It can extract filled pdf form data 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 Data Extraction Suite for extract filled pdf form data with pdf extractor sdk below and use it in your application. Simply copy and paste in your VB.NET project or application you and then run your app! This basic programming language sample code for VB.NET will do the whole work for you to extract filled pdf form data with pdf extractor sdk.

ByteScout Data Extraction Suite free trial version is available on our website. VB.NET and other programming languages are supported.

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 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