Learn how to reduce memory usage during PDF to HTML conversion in VB.NET with this source code sample. Want to reduce memory usage during PDF to HTML conversion in your VB.NET app? ByteScout PDF To HTML SDK is designed for it. ByteScout PDF To HTML SDK is the SDK for PDF to HTML conversin. Generates static HTML output from source PDF and re-creates all visual layout, text positions, vector and raster drawings, images, and form elements. Generated HTML requires can be viewed in any Internet browser with no other software or plugins required.
VB.NET code samples for VB.NET developers help to speed up coding of your application when using ByteScout PDF To HTML SDK. In your VB.NET project or application you may simply copy & paste the code and then run your app! You can use these VB.NET sample examples in one or many applications.
Trial version of ByteScout PDF To HTML SDK can be downloaded for free from our website. It also includes source code samples for VB.NET and other programming languages.
Imports Bytescout.PDF2HTML 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.PDF2HTML.HTMLExtractor instance Using extractor As New HTMLExtractor("demo", "demo") Try ' Load sample PDF document extractor.LoadDocumentFromFile("sample2.pdf") ' Disable page data caching, so processed pages will be disposed automatically extractor.PageDataCaching = PageDataCaching.None ' Save result to file extractor.SaveHtmlToFile("output.html") Catch exception As PDF2HTMLException Console.Write(exception.ToString()) End Try End Using ' Open the output file in default associated application System.Diagnostics.Process.Start("output.txt") End Sub End Class