ByteScout PDF Extractor SDK - VBScript - Extract Text From Page Area from PDF - ByteScout

ByteScout PDF Extractor SDK – VBScript – Extract Text From Page Area from PDF

  • Home
  • /
  • Articles
  • /
  • ByteScout PDF Extractor SDK – VBScript – Extract Text From Page Area from PDF

How to extract text from page area from PDF in VBScript and ByteScout PDF Extractor SDK

How to code in VBScript to extract text from page area from PDF with this step-by-step tutorial

These sample source codes on this page below are demonstrating how to extract text from page area from PDF in VBScript. ByteScout PDF Extractor SDK is the SDK is designed to help developers with pdf tables and pdf 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 and other utilities and you can use it to extract text from page area from PDF with VBScript.

You will save a lot of time on writing and testing code as you may just take the VBScript code from ByteScout PDF Extractor SDK for extract text from page area from PDF below and use it in your application. In your VBScript project or application you may simply copy & paste the code and then run your app! This basic programming language sample code for VBScript will do the whole work for you to extract text from page area from PDF.

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

Try it today: Get 60 Day Free Trial or sign up for Web API

ExtractTextFromPageArea.vbs
      
' Create TextExtractor object Set extractor = CreateObject("Bytescout.PDFExtractor.TextExtractor") extractor.RegistrationName = "demo" extractor.RegistrationKey = "demo" ' Load sample PDF document extractor.LoadDocumentFromFile("..\..\sample1.pdf") ' Get page count pageCount = extractor.GetPageCount() ' Iterate through pages For i = 0 to pageCount - 1 ' Set extraction area (in Points. 1 Point = 1/72 in.) extractor.SetExtractionArea 0, 0, 200, 200 ' Extract text from the extraction area text = extractor.GetTextFromPage(i) Wscript.echo "Page #" & CStr(i) & " text from area (0, 0, 200, 200): " & vbCr & vbLf & text extractor.ResetExtractionArea Next Set extractor = Nothing

Try it today: Get 60 Day Free Trial or sign up for Web API

MORE INFORMATION

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

Explore ByteScout PDF Extractor SDK documentation

WEB API VERSION

Sign Up for free Web API key

Explore Web API Documentation

Tutorials:

prev
next