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

PDF2Word Object Description

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

COM Object Identifiers

ProgID EasyConverter.PDF2Word.5
CLSID ECF13D72-FC85-47F3-B3E8-A78CEF7C0627
TypeLib UUID 68472FF1-A784-4E53-AF4A-C10E4728DDDF

Object Namespaces

COM, C++ EasyConverterLib
.NET COM BCL.easyConverter5.Interop.Word
Native .NET BCL.easyConverter.Word
Java COM com.bcl.easyConverter.EasyConverterLib.*
Native Java com.bcl.easyconverter.word.*

Example Usage (VB)

Set oPdf2Word = Server.CreateObject("EasyConverter.PDF2Word.5")
oPdf2Word.ConvertToWord("c:\temp\input.pdf", "c:\temp\output.doc")

Visual C++

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

#import "progid:EasyConverter.PDF2Word.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\Rtf\beconv.dll"
#else
#import "progid:EasyConverter.PDF2Word.5"
#endif

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

EasyConverterLib::IPDF2WordPtr pConvObj;
pConvObj.CreateInstance(_T("EasyConverter.PDF2Word.5"));
pConvObj->ConvertToWord(_bstr_t(L"c:\\temp\\input.pdf"), _bstr_t(L"c:\\temp\\output.doc"));

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(PDF2Word pdf2word = new PDF2Word())
{
   pdf2word.ConvertToWord(@"c:\temp\input.pdf", @"c:\temp\output.doc");
}

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

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:

PDF2Word pdf2word = new PDF2Word();
try
{
   pdf2word.ConvertToWord("c:\\temp\\input.pdf", "c:\\temp\\output.doc");
}
catch(PDF2WordException e)
{
   System.out.println(e);
}
finally
{
   pdf2word.dispose();
}

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