Every ByteScout tool contains example VBScript source codes that you can find here or in the folder with installed ByteScout product. Want to reduce memory usage for PDF extraction in your VBScript app? ByteScout PDF Extractor SDK is designed for it. 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.
This code snippet below for ByteScout PDF Extractor SDK works best when you need to quickly reduce memory usage for PDF extraction in your VBScript application. In order to implement the functionality, you should copy and paste this code for VBScript below into your code editor with your app, compile and run your application. Enjoy writing a code with ready-to-use sample codes in VBScript.
Download free trial version of ByteScout PDF Extractor SDK from our website with this and other source code samples for VBScript.
' When processing huge PDF documents you may run into OutOfMemoryException. ' This example demonstrates a way to spare the memory by disabling page data caching. ' Create Bytescout.PDFExtractor.TextExtractor object Set extractor = CreateObject("Bytescout.PDFExtractor.TextExtractor") extractor.RegistrationName = "demo" extractor.RegistrationKey = "demo" ' Load sample PDF document extractor.LoadDocumentFromFile("..\..\sample2.pdf") ' Disable page data caching, so processed pages wiil be disposed automatically extractor.PageDataCaching = 0 ' 0 - no caching; 1 - cache all pages. ' Save extracted text to file extractor.SaveTextToFile("output.txt") Set extractor = Nothing WScript.Echo "Extracted data saved to 'output.txt' file."