PDF Converter X is an ActiveX component / DLL designed to assist you, the software programmer, to quickly add a PDF conversion utility to your application. A tool like this can be very helpful when the native binary format of PDF documents is not acceptable. This component can convert a PDF to a Text, or HTML file.
Please Note: This product does not require any other product to function. It is completely standalone.
PDF Converter X encapsulates all the details required for quick integration. Furthermore, a sample Visual Basic application is provided to get you up to speed quickly. Although you may not be using Visual Basic, the approach for all development environments will be similar.
Simply install the product, and add the PDF to Text Component / DLL to your development environment. Once in place the routines can be accessed to programmatically convert PDF files. You will see that the code required to integrate this component in an application is relatively small considering the functionality it provides.
PDF Converter X Features
- Quick integration of this PDF to Text component is easy since sample Source code provided.
- Built in Dialogs (GUI) for quick conversion, and Advanced conversion tasks.
- Does not require Adobe Acrobat, it is completely standalone technology.
- This component can be invisible at run time.
- File conversion is exceptionally fast.
- DLL and ActiveX and EXE interfaces are available. For command line execution see 'Convert Doc'.
A sample VB program is provided to illustrate proper usage of this PDF to Text OCX. Converting a PDF file is as simple as filling out a few properties, and then calling the ConvertPDFToFile() method. A sample piece of VB Code is shown below:
Public Function ConvertPDFToFile(sInputFile As String, _
sOutputFile As String, _
bIgnoreProtect As Boolean, _
sPasswordUser As String, _
sPasswordOwner As String, _
lFirstPage As Long, _
lLastPage As Long, _
lTargetFileType As Long, _
sErr As String) As Long
Dim lResult As Long
Dim bSingleShot As Boolean
Dim sPassword As String
bSingleShot = False
sPassword = ""
PDFX1.InputFile = sInputFile ' Assign the PDF to Text ActiveX properties
PDFX1.OutputFile = sOutputFile ' Assign the PDF to Text ActiveX properties
PDFX1.PasswordOwner = sPasswordUser ' Assign the PDF to Text ActiveX properties
PDFX1.PasswordUser = sPasswordOwner ' Assign the PDF to Text Component properties
PDFX1.TargetFileType = lTargetFileType ' Here we select PDF to Text or PDF to HTML conversion
PDFX1.FirstPage = lFirstPage ' Assign the PDF to Text Component properties
PDFX1.LastPage = lLastPage ' Assign the PDF to Text Component properties
ConvertPDFToFile = PDFX1.ConvertPDFToFile() ' Convert PDF to Text DLL / Component Conversion
sErr = PDFX1.ErrorString
End Function
'Note the PDF to Text DLL has a very similar API.