Every ByteScout tool includes simple example VB.NET source codes that you can get here or in the folder with installed ByteScout product. ByteScout Premium Suite: the set that includes 12 SDK products from ByteScout including tools and components for PDF, barcodes, spreadsheets, screen video recording. It can find text with hyphens in pdf 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 Premium Suite for find text with hyphens in pdf with pdf extractor sdk below and use it in your application. Follow the instructions from scratch to work and copy the VB.NET code. Complete and detailed tutorials and documentation are available along with installed ByteScout Premium Suite if you’d like to learn more about the topic and the details of the API.
ByteScout provides the free trial version of ByteScout Premium Suite along with the documentation and source code samples.
Imports System.Drawing Imports Bytescout.PDFExtractor Class Program Friend Shared Sub Main(args As String()) ' Create Bytescout.PDFExtractor.TextExtractor instance Dim extractor As New TextExtractor() extractor.RegistrationName = "demo" extractor.RegistrationKey = "demo" ' Load sample PDF document extractor.LoadDocumentFromFile("words-with-hyphens.pdf") Dim pageCount As Integer = extractor.GetPageCount() ' Search each page for "hyphen" string For i As Integer = 0 To pageCount - 1 If extractor.Find(i, "hyphen", False) Then Do Console.WriteLine("Found on page " & i.ToString() & " at location " & extractor.FoundText.Bounds.ToString()) Loop While extractor.FindNext() End If Next ' Cleanup extractor.Dispose() Console.WriteLine() Console.WriteLine("Press any key to continue...") Console.ReadLine() End Sub End Class