An easy to understand guide on how to reduce memory usage with pdf extractor sdk in VB.NET with this source code sample. Want to reduce memory usage with pdf extractor sdk in your VB.NET app? ByteScout Data Extraction Suite is designed for it. ByteScout Data Extraction Suite is the bundle that includes three SDK tools for data extraction from PDF, scans, images and from spreadsheets: PDF Extractor SDK, Data Extraction SDK, Barcode Reader SDK.
This prolific sample source code in VB.NET for ByteScout Data Extraction Suite contains various functions and other necessary options you should do calling the API to reduce memory usage with pdf extractor sdk. Simply copy and paste in your VB.NET project or application you and then run your app! Enjoy writing a code with ready-to-use sample codes in VB.NET.
Our website gives trial version of ByteScout Data Extraction Suite for free. It also includes documentation and source code samples.
Imports Bytescout.PDFExtractor Imports System.IO Class Program Friend Shared Sub Main(args As String()) ' 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 instance Using extractor As New TextExtractor("demo", "demo") Try ' Load sample PDF document extractor.LoadDocumentFromFile("sample2.pdf") ' Disable page data caching, so processed pages wiil be disposed automatically extractor.PageDataCaching = PageDataCaching.None ' Save extracted text to file extractor.SaveTextToFile("output.txt") Catch exception As PDFExtractorException Console.Write(exception.ToString()) End Try End Using ' Open result file in default associated application (for demo purposes) System.Diagnostics.Process.Start("output.txt") End Sub End Class