With this source code sample you may quickly learn how to convert PDF to HTML (simple layout) from all pages in VB.NET. ByteScout PDF To HTML SDK is the SDK that can take PDF and generate HTML version of it with all the visual layout, positions, vectors, images and form fields preserved. Generated HTML requires no special software and can be viewed in any Internet browser and you can use it to convert PDF to HTML (simple layout) from all pages with VB.NET.
VB.NET code samples for VB.NET developers help to speed up coding of your application when using ByteScout PDF To HTML SDK. Just copy and paste the code into your VB.NET application’s code and follow the instruction. You can use these VB.NET sample examples in one or many applications.
You can download free trial version of ByteScout PDF To HTML SDK from our website to see and try many others source code samples for VB.NET.
Imports Bytescout.PDF2HTML Class Program Friend Shared Sub Main(args As String()) ' Create Bytescout.PDF2HTML.HTMLExtractor instance Dim extractor As New HTMLExtractor() extractor.RegistrationName = "demo" extractor.RegistrationKey = "demo" ' Load sample PDF document extractor.LoadDocumentFromFile("sample2.pdf") ' Set plain HTML extraction mode extractor.ExtractionMode = HTMLExtractionMode.PlainHTML ' Save extracted HTML to file extractor.SaveHtmlToFile("output.html") ' Cleanup extractor.Dispose() ' Open output file in default associated application System.Diagnostics.Process.Start("output.html") End Sub End Class