ByteScout PDF Suite - VB.NET - Extract text from page area in pdf with pdf extractor sdk - ByteScout

ByteScout PDF Suite – VB.NET – Extract text from page area in pdf with pdf extractor sdk

  • Home
  • /
  • Articles
  • /
  • ByteScout PDF Suite – VB.NET – Extract text from page area in pdf with pdf extractor sdk

How to extract text from page area in pdf with pdf extractor sdk in VB.NET with ByteScout PDF Suite

This code in VB.NET shows how to extract text from page area in pdf with pdf extractor sdk with this how to tutorial

On this page you will learn from code samples for programming in VB.NET.Writing of the code to extract text from page area in pdf with pdf extractor sdk in VB.NET can be executed by programmers of any level using ByteScout PDF Suite. ByteScout PDF Suite can extract text from page area in pdf with pdf extractor sdk. It can be applied from VB.NET. 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 following code snippet for ByteScout PDF Suite works best when you need to quickly extract text from page area in pdf with pdf extractor sdk in your VB.NET application. 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! Complete and detailed tutorials and documentation are available along with installed ByteScout PDF Suite if you’d like to learn more about the topic and the details of the API.

You can download free trial version of ByteScout PDF Suite from our website to see and try many others 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)

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("sample2.pdf") ' Get page count Dim pageCount As Integer = extractor.GetPageCount() ' Iterate through pages For i As Integer = 0 To pageCount - 1 ' Define rectangle location to extract from Dim location As RectangleF = New RectangleF(0, 0, 200, 200) ' Set extraction area extractor.SetExtractionArea(location) ' Extract text from the extraction area Dim text As String = extractor.GetTextFromPage(i) Console.WriteLine("Extracted from page #" + i.ToString() + ":") Console.WriteLine() Console.WriteLine(text) ' Reset the extraction area extractor.ResetExtractionArea() Console.WriteLine() Next ' Cleanup extractor.Dispose() Console.WriteLine("Press any key to exit...") Console.ReadKey() End Sub End Class

ON-PREMISE OFFLINE SDK

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

ON-DEMAND REST WEB API

Get Your API Key

Explore Web API Docs

Explore Web API Samples

VIDEO

ON-PREMISE OFFLINE SDK

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

ON-DEMAND REST WEB API

Get Your API Key

Explore Web API Docs

Explore Web API Samples

Tutorials:

prev
next