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

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

How to index pdf files with pdf extractor sdk in VB.NET using ByteScout PDF Suite

Continuous learning is a crucial part of computer science and this tutorial shows how to index pdf files with pdf extractor sdk in VB.NET

The sample source codes on this page shows how to index pdf files with pdf extractor sdk in VB.NET. 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 index pdf files 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 PDF Suite for index pdf files with pdf extractor sdk below and use it in your application. IF you want to implement the functionality, just copy and paste this code for VB.NET below into your code editor with your app, compile and run your application. If you want to use these VB.NET sample examples in one or many applications then they can be used easily.

You can download free trial version of ByteScout PDF Suite from our website to see and try many others source code samples for VB.NET.

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