These source code samples are assembled by their programming language and functions they apply. 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 reduce memory usage with pdf extractor sdk in VB.NET.
These VB.NET code samples for VB.NET guide developers to speed up coding of the application when using ByteScout Premium Suite. IF you want to implement the functionality, just copy and paste this code for VB.NET below into your code editor with your app, compile and run your application. Enjoy writing a code with ready-to-use sample VB.NET codes.
Trial version of ByteScout Premium Suite is available for free. Source code samples are included to help you with your VB.NET app.
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