ByteScout PDF Suite - VB6 - Convert pdf to html (simple layout) with pdf to html sdk - ByteScout
Announcement
Our ByteScout SDK products are sunsetting as we focus on expanding new solutions.
Learn More Open modal
Close modal
Announcement Important Update
ByteScout SDK Sunsetting Notice
Our ByteScout SDK products are sunsetting as we focus on our new & improved solutions. Thank you for being part of our journey, and we look forward to supporting you in this next chapter!

ByteScout PDF Suite – VB6 – Convert pdf to html (simple layout) with pdf to html sdk

  • Home
  • /
  • Articles
  • /
  • ByteScout PDF Suite – VB6 – Convert pdf to html (simple layout) with pdf to html sdk

How to convert pdf to html (simple layout) with pdf to html sdk in VB6 and ByteScout PDF Suite

Continuous learning is a crucial part of computer science and this tutorial shows how to convert pdf to html (simple layout) with pdf to html sdk in VB6

This sample source code below will display you how to convert pdf to html (simple layout) with pdf to html sdk in VB6. Want to convert pdf to html (simple layout) with pdf to html sdk in your VB6 app? ByteScout PDF Suite is designed for it. ByteScout PDF Suite is the set that includes 6 SDK products to work with PDF from generating rich PDF reports to extracting data from PDF documents and converting them to HTML. This bundle includes PDF (Generator) SDK, PDF Renderer SDK, PDF Extractor SDK, PDF to HTML SDK, PDF Viewer SDK and PDF Generator SDK for Javascript.

The following code snippet for ByteScout PDF Suite works best when you need to quickly convert pdf to html (simple layout) with pdf to html sdk in your VB6 application. IF you want to implement the functionality, just copy and paste this code for VB6 below into your code editor with your app, compile and run your application. This basic programming language sample code for VB6 will do the whole work for you to convert pdf to html (simple layout) with pdf to html sdk.

You can download free trial version of ByteScout PDF Suite from our website with this and other source code samples for VB6.

On-demand (REST Web API) version:
 Web API (on-demand version)

On-premise offline SDK for Windows:
 60 Day Free Trial (on-premise)

Form1.frm
      
VERSION 5.00 Begin VB.Form Form1 Caption = "PDFtoHTMLSimpleLayout" ClientHeight = 1380 ClientLeft = 120 ClientTop = 465 ClientWidth = 5595 LinkTopic = "Form1" ScaleHeight = 1380 ScaleWidth = 5595 StartUpPosition = 3 'Windows Default Begin VB.CommandButton cmd_PdftoHTML_2ndPage Caption = "PDF to HTML (2nd page)" CausesValidation= 0 'False Height = 855 Left = 2880 TabIndex = 1 Top = 240 Width = 2055 End Begin VB.CommandButton cmd_PDFtoHTMLSimpleLayout Caption = "PDF to HTML" CausesValidation= 0 'False Height = 855 Left = 480 TabIndex = 0 Top = 240 Width = 2055 End End Attribute VB_Name = "Form1" Attribute VB_GlobalNameSpace = False Attribute VB_Creatable = False Attribute VB_PredeclaredId = True Attribute VB_Exposed = False Private Sub cmd_PDFtoHTMLSimpleLayout_Click() ' Hanlde Error On Error GoTo ErrorHandler: ' Create Bytescout.PDF2HTML.HTMLExtractor object Set extractor = CreateObject("Bytescout.PDF2HTML.HTMLExtractor") extractor.RegistrationName = "demo" extractor.RegistrationKey = "demo" ' Set plain HTML extraction mode extractor.ExtractionMode = 0 ' Load sample PDF document extractor.LoadDocumentFromFile ("sample2.pdf") ' Save extracted HTML to file extractor.SaveHtmlToFile_2 "output.html" MsgBox "PDF file successfully saved as 'output.html'.", vbInformation, "Success" ' Open output file in default associated application CreateObject("WScript.Shell").Run "output.html", 1, False Set extractor = Nothing ' Close form Unload Me ErrorHandler: If Err.Number <> 0 Then MsgBox Err.Description, vbInformation, "Error" End If End Sub Private Sub cmd_PdftoHTML_2ndPage_Click() ' Hanlde Error On Error GoTo ErrorHandler: ' Create Bytescout.PDF2HTML.HTMLExtractor object Set extractor = CreateObject("Bytescout.PDF2HTML.HTMLExtractor") extractor.RegistrationName = "demo" extractor.RegistrationKey = "demo" ' Set plain HTML extraction mode extractor.ExtractionMode = 0 ' Load sample PDF document extractor.LoadDocumentFromFile ("sample2.pdf") ' Convert 2-nd page to HTML and save it to file extractor.SaveHtmlPageToFile 1, "output.html" MsgBox "PDF file (2nd page) successfully saved as 'output.html'.", vbInformation, "Success" ' Open output file in default associated application CreateObject("WScript.Shell").Run "output.html", 1, False Set extractor = Nothing ' Close form Unload Me ErrorHandler: If Err.Number <> 0 Then MsgBox Err.Description, vbInformation, "Error" End If End Sub

ON-PREMISE OFFLINE SDK

60 Day Free Trial or Visit ByteScout PDF Suite Home Page

Explore ByteScout PDF Suite Documentation

Explore Samples

Sign Up for ByteScout PDF Suite Online Training

ON-DEMAND REST WEB API

Get Your API Key

Explore Web API Docs

Explore Web API Samples

PDFtoHTMLSimpleLayout.vbp
      
Type=Exe Reference=*\G{00020430-0000-0000-C000-000000000046}#2.0#0#..\..\..\..\..\..\..\..\..\Windows\SysWOW64\stdole2.tlb#OLE Automation Reference=*\G{3D7BFCBE-A112-4953-B4B0-83647F86C919}#9.1#0#..\..\..\..\..\..\..\..\..\WINDOWS\SYSWOW64\Bytescout.PDF2HTML.tlb#ByteScout PDF To HTML SDK [TRIAL] Form=Form1.frm Startup="Form1" Command32="" Name="PDFtoHTMLSimpleLayout" HelpContextID="0" CompatibleMode="0" MajorVer=1 MinorVer=0 RevisionVer=0 AutoIncrementVer=0 ServerSupportFiles=0 VersionCompanyName="Hiren" CompilationType=0 OptimizationType=0 FavorPentiumPro(tm)=0 CodeViewDebugInfo=0 NoAliasing=0 BoundsCheck=0 OverflowCheck=0 FlPointCheck=0 FDIVCheck=0 UnroundedFP=0 StartMode=0 Unattended=0 Retained=0 ThreadPerObject=0 MaxNumberOfThreads=1

ON-PREMISE OFFLINE SDK

60 Day Free Trial or Visit ByteScout PDF Suite Home Page

Explore ByteScout PDF Suite Documentation

Explore Samples

Sign Up for ByteScout PDF Suite Online Training

ON-DEMAND REST WEB API

Get Your API Key

Explore Web API Docs

Explore Web API Samples

VIDEO

ON-PREMISE OFFLINE SDK

60 Day Free Trial or Visit ByteScout PDF Suite Home Page

Explore ByteScout PDF Suite Documentation

Explore Samples

Sign Up for ByteScout PDF Suite Online Training

ON-DEMAND REST WEB API

Get Your API Key

Explore Web API Docs

Explore Web API Samples

Tutorials:

prev
next