The sample source code below will teach you how to detect lines in pdf with pdf extractor sdk in VB.NET. ByteScout Data Extraction Suite can detect lines in pdf with pdf extractor sdk. It can be applied from VB.NET. ByteScout Data Extraction Suite is the set that includes 3 SDK products for data extraction from PDF, scans, images and from spreadsheets: PDF Extractor SDK, Data Extraction SDK, Barcode Reader SDK.
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 Data Extraction Suite for detect lines 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. Use of ByteScout Data Extraction Suite in VB.NET is also described in the documentation included along with the product.
The trial version of ByteScout Data Extraction Suite can be downloaded for free from our website. It also includes source code samples for VB.NET and other programming languages.
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
' Detect all lines in PDF documents
Module Program
Sub Main()
Try
Using lineDetector As New LineDetector("demo", "demo")
' Load PDF Document
lineDetector.LoadDocumentFromFile("LineDetectSample.pdf")
' Get all lines
Dim foundLinesCollection As FoundLinesCollection = lineDetector.FindLines(0, LineOrientationsToFind.HorizontalAndVertical)
' Print output
Console.WriteLine("Total {0} lines Detected", foundLinesCollection.Count)
For Each foundLine As FoundLine In foundLinesCollection
Console.WriteLine("From: {0}, To: {1}, Width: {2}, Line Orientation: {3}",
foundLine.From.ToString(), foundLine.To.ToString(), foundLine.Width, foundLine.LineOrientation.ToString())
Next
End Using
Catch ex As Exception
Console.WriteLine("ERROR:" + ex.Message)
End Try
Console.WriteLine("Press any key to exit...")
Console.ReadLine()
End Sub
End Module
60 Day Free Trial or Visit ByteScout Data Extraction Suite Home Page
Explore ByteScout Data Extraction Suite Documentation
Explore Samples
Sign Up for ByteScout Data Extraction Suite Online Training
Get Your API Key
Explore Web API Docs
Explore Web API Samples
60 Day Free Trial or Visit ByteScout Data Extraction Suite Home Page
Explore ByteScout Data Extraction Suite Documentation
Explore Samples
Sign Up for ByteScout Data Extraction Suite Online Training
Get Your API Key
Explore Web API Docs
Explore Web API Samples
also available as: