ByteScout Premium Suite - VB.NET - Index pdf files 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 – Index pdf files with pdf extractor sdk

  • Home
  • /
  • Articles
  • /
  • ByteScout Premium Suite – VB.NET – Index pdf files with pdf extractor sdk

How to index pdf files with pdf extractor sdk in VB.NET and ByteScout Premium Suite

Learn to code in VB.NET to index pdf files with pdf extractor sdk with this step-by-step tutorial

Every ByteScout tool includes simple example VB.NET source codes that you can get here or in the folder with installed ByteScout product. What is ByteScout Premium Suite? It is the bundle that includes twelve SDK products from ByteScout including tools and components for PDF, barcodes, spreadsheets, screen video recording. It can help you to index pdf files with pdf extractor sdk in your VB.NET application.

The following code snippet for ByteScout Premium Suite works best when you need to quickly index pdf files with pdf extractor sdk in your VB.NET application. Simply copy and paste in your VB.NET project or application you and then run your app! Applying VB.NET application mostly includes various stages of the software development so even if the functionality works please test it with your data and the production environment.

The trial version of ByteScout Premium Suite 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 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