BCL easyConverter SDK
easyConverter SDK Usermanual
PDF-to-HTML Programming API  |  Download Free Trial  |  Contact Us to Purchase

PDF2HTML Object Description

This object is used to convert PDF file into HTML file.

COM Object Identifiers

ProgID EasyConverter.PDF2HTML.5
CLSID 82B38E3B-7ED8-462B-B1FA-F8EA3C5A755C
TypeLib UUID 371628D2-07CA-44B6-ACB6-C1C9E9656B7C

Object Namespaces

COM, C++ EasyConverterHTML
.NET COM BCL.easyConverter5.Interop.HTML
Native .NET BCL.easyConverter.HTML
Java COM com.bcl.easyConverter.EasyConverterHTML.*
Native Java com.bcl.easyconverter.html.*

Example Usage (VB)

Set oPdf2Html = Server.CreateObject("EasyConverter.PDF2HTML.5")
oPdf2Html.ConvertToHTML("c:\temp\input.pdf", "c:\temp\output.html")

Visual C++

In modern versions of Visual C++, easyConverter HTML should be imported the following way:

#import "progid:EasyConverter.PDF2HTML.5"

If you need to support Visual Studio 6, we recommend this solution:

#if _MSC_VER <= 1200 // VC6 or older
#import "c:\Program Files\BCL Technologies\easyConverter SDK 5\Html\beconvh.dll"
#else
#import "progid:EasyConverter.PDF2HTML.5"
#endif

The actual C++ code to perform a conversion is as follows:

EasyConverterHTML::IPDF2HTMLPtr pConvObj;
pConvObj.CreateInstance(_T("EasyConverter.PDF2HTML.5"));
pConvObj->ConvertToHTML(_bstr_t(L"c:\\temp\\input.pdf"), _bstr_t(L"c:\\temp\\output.html"));

Native .NET API

There is now a 100% native .NET API for easyConverter, which is strongly recommended over the traditional COM objects.

In this documentation, a light yellow background color is used for all native .NET declarations and sample code, like this:

using(PDF2HTML pdf2html = new PDF2HTML())
{
   pdf2html.ConvertToHTML(@"c:\temp\input.pdf", @"c:\temp\output.html");
}

Don't forget to use the namespace: using BCL.easyConverter.HTML;

Native Java API

There is now a 100% native Java API for easyConverter, which is strongly recommended over the traditional JACOB Java COM bridge.

In this documentation, a light red background color is used for all native Java declarations and sample code, like this:

PDF2HTML pdf2html = new PDF2HTML();
try
{
   pdf2html.ConvertToHTML("c:\\temp\\input.pdf", "c:\\temp\\output.html");
}
catch(PDF2HTMLException e)
{
   System.out.println(e);
}
finally
{
   pdf2html.dispose();
}

Don't forget to import the namespace: import com.bcl.easyconverter.html.*;