Extract text from page area from pdf with pdf extractor sdk is simple to apply in VBScript if you use these source codes below. ByteScout Premium Suite is the set that includes 12 SDK products from ByteScout including tools and components for PDF, barcodes, spreadsheets, screen video recording. It can be applied to extract text from page area from pdf with pdf extractor sdk using VBScript.
Want to quickly learn? This fast application programming interfaces of ByteScout Premium Suite for VBScript plus the guidelines and the code below will help you quickly learn how to extract text from page area from pdf with pdf extractor sdk. Simply copy and paste in your VBScript project or application you and then run your app! Want to see how it works with your data then code testing will allow the function to be tested and work properly.
Trial version of ByteScout Premium Suite is available for free. Source code samples are included to help you with your VBScript app.
' 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