The sample shows instructions and algorithm of how to find text in pdf with smart match with pdf extractor sdk and how to make it run in your VB.NET application. Want to find text in pdf with smart match with pdf extractor sdk in your VB.NET app? ByteScout PDF Suite is designed for it. 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.
The SDK samples given below describe how to quickly make your application do find text in pdf with smart match with pdf extractor sdk in VB.NET with the help of ByteScout PDF Suite. Just copy and paste the code into your VB.NET application’s code and follow the instructions. This basic programming language sample code for VB.NET will do the whole work for you to find text in pdf with smart match with pdf extractor sdk.
You can download free trial version of ByteScout PDF Suite from our website with this and other 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)
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
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
Get Your API Key
Explore Web API Docs
Explore Web API Samples
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
Get Your API Key
Explore Web API Docs
Explore Web API Samples
also available as: