ByteScout PDF Extractor SDK - VB.NET - Index PDF Files - ByteScout

ByteScout PDF Extractor SDK – VB.NET – Index PDF Files

  • Home
  • /
  • Articles
  • /
  • ByteScout PDF Extractor SDK – VB.NET – Index PDF Files

How to index PDF files in VB.NET using ByteScout PDF Extractor SDK

Tutorial on how to index PDF files in VB.NET

This sample source code below will demonstrate you how to index PDF files in VB.NET. ByteScout PDF Extractor SDK is the SDK is designed to help developers with pdf tables and pdf data extraction from unstructured documents like pdf, tiff, scans, images, scanned and electronic forms. The library is powered by OCR, computer vision and AI to provide unique functionality like table detection, automatic table structure extraction, data restoration, data restructuring and reconstruction. Supports PDF, TIFF, PNG, JPG images as input and can output CSV, XML, JSON formatted data. Includes full set of utilities like pdf splitter, pdf merger, searchable pdf maker and other utilities. It can index PDF files in VB.NET.

VB.NET code samples for VB.NET developers help to speed up coding of your application when using ByteScout PDF Extractor SDK. Follow the instructions from the scratch to work and copy the VB.NET code. Use of ByteScout PDF Extractor SDK in VB.NET is also explained in the documentation included along with the product.

Trial version of ByteScout PDF Extractor SDK can be downloaded for free from our website. It also includes source code samples for VB.NET and other programming languages.

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.IO Imports Bytescout.PDFExtractor Class Program Friend Shared Sub Main(ByVal args As String()) ' Create Bytescout.PDFExtractor.InfoExtractor instance Dim infoExtractor As New InfoExtractor() infoExtractor.RegistrationName = "demo" infoExtractor.RegistrationKey = "demo" ' Create Bytescout.PDFExtractor.TextExtractor instance Dim textExtractor As New TextExtractor() textExtractor.RegistrationName = "demo" textExtractor.RegistrationKey = "demo" ' List all PDF files in directory For Each file As String In Directory.GetFiles("..\..\..\..", "*.pdf") infoExtractor.LoadDocumentFromFile(file) Console.WriteLine("File Name: " & Path.GetFileName(file)) Console.WriteLine("Page Count: " & infoExtractor.GetPageCount()) Console.WriteLine("Author: " & infoExtractor.Author) Console.WriteLine("Title: " & infoExtractor.Title) Console.WriteLine("Producer: " & infoExtractor.Producer) Console.WriteLine("Subject: " & infoExtractor.Subject) Console.WriteLine("CreationDate: " & infoExtractor.CreationDate) Console.WriteLine("Text (2 lines): ") textExtractor.LoadDocumentFromFile(file) Using stringReader As New StringReader(textExtractor.GetTextFromPage(0)) Console.WriteLine(stringReader.ReadLine()) Console.WriteLine(stringReader.ReadLine()) End Using Console.WriteLine() Next ' Cleanup infoExtractor.Dispose() textExtractor.Dispose() Console.WriteLine() Console.WriteLine("Press any key to continue...") Console.ReadLine() End Sub End Class

ON-PREMISE OFFLINE SDK

60 Day Free Trial or Visit ByteScout PDF Extractor SDK Home Page

Explore ByteScout PDF Extractor SDK Documentation

Explore Samples

Sign Up for ByteScout PDF Extractor 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 PDF Extractor SDK Home Page

Explore ByteScout PDF Extractor SDK Documentation

Explore Samples

Sign Up for ByteScout PDF Extractor SDK Online Training

ON-DEMAND REST WEB API

Get Your API Key

Explore Web API Docs

Explore Web API Samples

Tutorials:

prev
next