ByteScout Document Parser SDK - VB.NET - Parse Simple Document - ByteScout

ByteScout Document Parser SDK – VB.NET – Parse Simple Document

  • Home
  • /
  • Articles
  • /
  • ByteScout Document Parser SDK – VB.NET – Parse Simple Document

How to parse simple document in VB.NET using ByteScout Document Parser SDK

How to code in VB.NET to parse simple document with this step-by-step tutorial

The sample source codes on this page shows how to parse simple document in VB.NET. What is ByteScout Document Parser SDK? It is the customizable data extraction platform for batch data extraction from documents. Relies on special templates that can be created with no special technical skills required. Supports millions of documents as input and designed to handle multiple threads. Can output data as JSON, CSV, XML or custom format. It can help you to parse simple document in your VB.NET application.

This code snippet below for ByteScout Document Parser SDK works best when you need to quickly parse simple document in your VB.NET application. Just copy and paste the code into your VB.NET application’s code and follow the instruction. Test VB.NET sample code examples whether they respond your needs and requirements for the project.

Trial version of ByteScout Document Parser SDK 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)

Module1.vb
      
Imports ByteScout.DocumentParser ' This example demonstrates document data parsing to JSON, YAML and XML formats. Module Module1 Sub Main() Dim templatesFolder As String = ".\Templates" Dim inputDocument1 As String = ".\DigitalOcean.pdf" Dim inputDocument2 As String = ".\AmazonAWS.pdf" Dim inputDocument3 As String = ".\Google.pdf" ' Create DocumentParser instance Using documentParser As New DocumentParser("demo", "demo") Console.WriteLine("Loading templates...") Dim count = documentParser.AddTemplates(templatesFolder) Console.WriteLine({code}quot;{count} templates loaded.") Console.WriteLine() Console.WriteLine({code}quot;Parsing ""{inputDocument1}""...") Console.WriteLine() ' Parse document data in JSON format Dim jsonString As String = documentParser.ParseDocument(inputDocument1, OutputFormat.JSON) ' Display parsed data in console Console.WriteLine("Parsing results in JSON format:") Console.WriteLine() Console.WriteLine(jsonString) Console.WriteLine() Console.WriteLine({code}quot;Parsing ""{inputDocument2}""...") Console.WriteLine() ' Parse document data in YAML format Dim yamlString As String = documentParser.ParseDocument(inputDocument2, OutputFormat.YAML) ' Display parsed data in console Console.WriteLine("Parsing results in YAML format:") Console.WriteLine() Console.WriteLine(yamlString) Console.WriteLine() Console.WriteLine({code}quot;Parsing ""{inputDocument3}""...") Console.WriteLine() ' Parse document data in YAML format Dim xmlString As String = documentParser.ParseDocument(inputDocument3, OutputFormat.XML) ' Display parsed data in console Console.WriteLine("Parsing results in XML format:") Console.WriteLine() Console.WriteLine(xmlString) End Using Console.WriteLine() Console.WriteLine("Press any key to continue...") Console.ReadLine() End Sub End Module

ON-PREMISE OFFLINE SDK

60 Day Free Trial or Visit ByteScout Document Parser SDK Home Page

Explore ByteScout Document Parser SDK Documentation

Explore Samples

Sign Up for ByteScout Document Parser SDK 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 Document Parser SDK Home Page

Explore ByteScout Document Parser SDK Documentation

Explore Samples

Sign Up for ByteScout Document Parser SDK Online Training

ON-DEMAND REST WEB API

Get Your API Key

Explore Web API Docs

Explore Web API Samples

Tutorials:

prev
next