These sample source codes on this page below are demonstrating how to convert PDF to HTML (simple layout) from page in VB.NET. ByteScout PDF To HTML SDK can convert PDF to HTML (simple layout) from page. It can be used from 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.
The SDK samples like this one below explain how to quickly make your application do convert PDF to HTML (simple layout) from page in VB.NET with the help of ByteScout PDF To HTML SDK. This VB.NET sample code is all you need for your app. Just copy and paste the code, add references (if needs to) and you are all set! Enjoy writing a code with ready-to-use sample codes in VB.NET.
Free trial version of ByteScout PDF To HTML SDK is available for download from our website. Get it to try other 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" ' Set plain HTML extraction mode extractor.ExtractionMode = HTMLExtractionMode.PlainHTML ' Load sample PDF document extractor.LoadDocumentFromFile("sample2.pdf") ' Convert 2-nd page to HTML and save it to file extractor.SaveHtmlPageToFile(1, "output.html") ' Cleanup extractor.Dispose() ' Open output file in default associated application System.Diagnostics.Process.Start("output.html") End Sub End Class