ByteScout PDF Extractor SDK - VB.NET - Find Text With Hyphens in PDF - ByteScout

ByteScout PDF Extractor SDK – VB.NET – Find Text With Hyphens in PDF

  • Home
  • /
  • Articles
  • /
  • ByteScout PDF Extractor SDK – VB.NET – Find Text With Hyphens in PDF

How to find text with hyphens in PDF in VB.NET using ByteScout PDF Extractor SDK

This tutorial will show how to find text with hyphens in PDF in VB.NET

The sample source code below will teach you how to find text with hyphens in PDF in VB.NET. ByteScout PDF Extractor SDK can find text with hyphens in PDF. It can be used from VB.NET. ByteScout PDF Extractor SDK is the Software Development Kit (SDK) that is designed to help developers with data extraction from unstructured documents like pdf, tiff, scans, images, scanned and electronic forms. The library is powered by OCR, computer vision and AI to provide unique functionality like table detection, automatic table structure extraction, data restoration, data restructuring and reconstruction. Supports PDF, TIFF, PNG, JPG images as input and can output CSV, XML, JSON formatted data. Includes full set of utilities like pdf splitter, pdf merger, searchable pdf maker.

VB.NET code samples for VB.NET developers help to speed up coding of your application when using ByteScout PDF Extractor SDK. This VB.NET sample code is all you need for your app. Just copy and paste the code, add references (if needs to) and you are all set! You can use these VB.NET sample examples in one or many applications.

Download free trial version of ByteScout PDF Extractor SDK from our website with this and other source code samples for VB.NET.

Try ByteScout PDF Extractor SDK today:  60 Day Free Trial (on-premise) or  Web API (on-demand version)

Program.vb
      
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

Try ByteScout PDF Extractor SDK today:  60 Day Free Trial (on-premise) or  Web API (on-demand version)

VIDEO

ON-PREMISE VERSION INFORMATION

Get 60 Day Free Trial or Visit ByteScout PDF Extractor SDK Home Page

Explore ByteScout PDF Extractor SDK Documentation

Get ByteScout PDF Extractor SDK Free Training

WEB API

Get Your Free API Key

Explore Web API Documentation

Tutorials:

prev
next