The SDK samples given below describe how to quickly make your application do convert pdf to html (complex layout) from page with pdf to html sdk in VB.NET with the help of ByteScout PDF Suite. Just copy and paste the code into your VB.NET application’s code and follow the instructions. Use of ByteScout PDF Suite in VB.NET is also described in the documentation included along with the product.
All these programming tutorials along with source code samples and ByteScout free trial version are available for download from our website.
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 HTML with CSS extraction mode extractor.ExtractionMode = HTMLExtractionMode.HTMLWithCSS ' 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