ByteScout PDF Extractor SDK - VB.NET - Detect Lines in PDF - ByteScout

ByteScout PDF Extractor SDK – VB.NET – Detect Lines in PDF

  • Home
  • /
  • Articles
  • /
  • ByteScout PDF Extractor SDK – VB.NET – Detect Lines in PDF

How to detect lines in PDF in VB.NET with ByteScout PDF Extractor SDK

How to detect lines in PDF in VB.NET

Sample source code below will show you how to cope with a difficult task like detect lines in PDF in VB.NET. ByteScout PDF Extractor SDK: the SDK that helps developers to extract data from unstructured documents, pdf, images, scanned and electronic forms. Includes AI functions like automatic table detection, automatic table extraction and restructuring, text recognition and text restoration from pdf and scanned documents. Includes PDF to CSV, PDF to XML, PDF to JSON, PDF to searchable PDF functions as well as methods for low level data extraction. It can detect lines in PDF in VB.NET.

This rich sample source code in VB.NET for ByteScout PDF Extractor SDK includes the number of functions and options you should do calling the API to detect lines in PDF. Just copy and paste the code into your VB.NET application’s code and follow the instruction. Enjoy writing a code with ready-to-use sample codes in VB.NET.

Our website provides trial version of ByteScout PDF Extractor SDK for free. It also includes documentation and source code samples.

Try ByteScout PDF Extractor SDK today: Get 60 Day Free Trial or sign up for Web API

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

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

VIDEO

ON-PREMISE VERSION

Get 60 Day Free Trial or Visit ByteScout PDF Extractor SDK page

Explore ByteScout PDF Extractor SDK documentation

WEB API

Sign Up for free Web API key

Explore Web API Documentation

Tutorials:

prev
next