ByteScout PDF Suite - VBScript - Reduce memory usage for pdf extraction with pdf extractor sdk - ByteScout

ByteScout PDF Suite – VBScript – Reduce memory usage for pdf extraction with pdf extractor sdk

  • Home
  • /
  • Articles
  • /
  • ByteScout PDF Suite – VBScript – Reduce memory usage for pdf extraction with pdf extractor sdk

How to reduce memory usage for pdf extraction with pdf extractor sdk in VBScript with ByteScout PDF Suite

If you want to learn more then this tutorial will show how to reduce memory usage for pdf extraction with pdf extractor sdk in VBScript

Reduce memory usage for pdf extraction with pdf extractor sdk is simple to apply in VBScript if you use these source codes below. ByteScout PDF Suite can reduce memory usage for pdf extraction with pdf extractor sdk. It can be applied from VBScript. 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.

Want to quickly learn? This fast application programming interfaces of ByteScout PDF Suite for VBScript plus the guidelines and the code below will help you quickly learn how to reduce memory usage for pdf extraction with pdf extractor sdk. Follow the instructions from scratch to work and copy the VBScript code. Further improvement of the code will make it more robust.

ByteScout PDF Suite free trial version is available on our website. VBScript and other programming languages are supported.

On-demand (REST Web API) version:
 Web API (on-demand version)

On-premise offline SDK for Windows:
 60 Day Free Trial (on-premise)

ReduceMemoryUsage.vbs
      
' 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."

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