ByteScout Premium Suite - VB.NET - Find text in pdf with smart match with pdf extractor sdk - ByteScout

ByteScout Premium Suite – VB.NET – Find text in pdf with smart match with pdf extractor sdk

  • Home
  • /
  • Articles
  • /
  • ByteScout Premium Suite – VB.NET – Find text in pdf with smart match with pdf extractor sdk

How to find text in pdf with smart match with pdf extractor sdk in VB.NET with ByteScout Premium Suite

If you want to learn more then this tutorial will show how to find text in pdf with smart match with pdf extractor sdk in VB.NET

Quickly learn how to find text in pdf with smart match with pdf extractor sdk in VB.NET with this sample source code. ByteScout Premium Suite is the set that includes 12 SDK products from ByteScout including tools and components for PDF, barcodes, spreadsheets, screen video recording. It can be applied to find text in pdf with smart match with pdf extractor sdk using VB.NET.

These VB.NET code samples for VB.NET guide developers to speed up coding of the application when using ByteScout Premium Suite. Follow the instructions from scratch to work and copy the VB.NET code. Enjoy writing a code with ready-to-use sample VB.NET codes.

All these programming tutorials along with source code samples and ByteScout free trial version are available for download from our website.

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 Bytescout.PDFExtractor Class Program Friend Shared Sub Main(args As String()) Dim extractor As TextExtractor = New TextExtractor("demo", "demo") ' Load the document extractor.LoadDocumentFromFile("sample2.pdf") ' Smart match the search string like Adobe Reader extractor.WordMatchingMode = WordMatchingMode.SmartMatch Dim searchString As String = "land" ' Get page count Dim pageCount As Integer = extractor.GetPageCount() ' Iterate through pages For i As Integer = 0 To pageCount - 1 ' Search through page If extractor.Find(i, searchString, False) Then Do ' Output search results Console.WriteLine("Found on page " + i.ToString() + " at location " + extractor.FoundText.Bounds.ToString()) ' Now we are getting the found text Dim extractedString As String = extractor.FoundText.Text Console.WriteLine("Found text: " + extractedString) Loop While extractor.FindNext() ' Search next occurrence of the search string End If Next ' Cleanup extractor.Dispose() Console.WriteLine() Console.WriteLine("Press any key to exit...") Console.ReadKey() 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