Investintech Conversion DLL Methods

Interface of the Investintech Conversion DLL is exposed through its methods. In this section you will find details about each method: prototype, description, parameters, return value, how to call a method and some examples of using methods. It is assumed that following lines precede each of the examples:

//.h file must be included if we want to use conversion methods
#include "InvestintechConversionDLL.h"
BSTR bstr_inputFile;
CString str_inputFile;
//input file name

str_inputFile = _T("in.pdf");
//conversion from CString to BSTR
bstr_inputFile = str_inputFile.AllocSysString();

InvestintechConversionDLL_PDF_to_Excel
InvestintechConversionDLL_PDF_to_HTML
InvestintechConversionDLL_PDF_to_Text
InvestintechConversionDLL_PDF_to_RTF_Normal
InvestintechConversionDLL_PDF_to_RTF_Frames
InvestintechConversionDLL_PDF_to_RTF_Simple
InvestintechConversionDLL_PDF_to_CVS
InvestintechConversionDLL_IDString

InvestintechConversionDLL_PDF_to_Excel

boolInvestintechConversionDLL_PDF_to_Excel(BSTR BSTR_inFile, BSTR BSTR_outFile)

Description

The InvestintechConversionDLL_PDF_to_Excel() method converts file from PDF to Microsoft Excel 2.1 format. Any version of Microsoft Excel can open destination (output) file. Original PDF file will remain unchanged.

Parameters

BSTR_inFile
String containing full path and filename or just filename of PDF file that will be converted to XLS file.

BSTR_outFile
String containing full path and filename or just filename of XLS file representing the result of conversion.

Returns

true if PDF file is successfully converted to XLS, false otherwise.

Example

//CA2W converts from ANSI to UNICODE character string
InvestintechConversionDLL_PDF_to_Excel(bstr_inputFile, CA2W("out.xls"));

return to top


InvestintechConversionDLL_PDF_to_HTML

bool InvestintechConversionDLL_PDF_to_HTML(BSTR BSTR_inFile, BSTR BSTR_outFile)

Description

The InvestintechConversionDLL_PDF_to_HTML() method converts file from PDF to HTML format. Any web browser can open destination (output) file. Original PDF file will remain unchanged.

Parameters

BSTR_inFile
String containing full path and filename or just filename of PDF file that will be converted to HTML file.

BSTR_outFile
String containing full path and filename or just filename of HTML file representing the result of conversion.

Returns

true if PDF file is successfully converted to HTML, false otherwise.

Example

InvestintechConversionDLL_ PDF_to_HTML(bstr_inputFile, CA2W("out.html"));

return to top


InvestintechConversionDLL_PDF_to_Text

bool InvestintechConversionDLL_PDF_to_Text(BSTR BSTR_inFile, BSTR BSTR_outFile)

Description

The InvestintechConversionDLL_PDF_to_Text() method converts file from PDF to plain text format. Any text editor can open destination (output) file. Original PDF file will remain unchanged.

Parameters

BSTR_inFile
String containing full path and filename or just filename of PDF file that will be converted to plain text file.

BSTR_outFile
String containing full path and filename or just filename of plain text file representing the result of conversion.

Returns

true if PDF file is successfully converted to plain text, false otherwise.

Example

InvestintechConversionDLL_PDF_to_Text(bstr_inputFile, CA2W("out.txt"));

return to top


InvestintechConversionDLL_PDF_to_RTF_Normal

bool InvestintechConversionDLL_PDF_to_RTF_Normal(BSTR BSTR_inFile, BSTR BSTR_outFile)

Description

The InvestintechConversionDLL_PDF_to_RTF_Normal() method converts file from PDF to RTF file. Usage of this method will retain background graphics, as a background image in the converted output, and the textual layout using the layout of the original PDF document for guidance. For most documents, this will provide the best looking output in a format that is simple to edit. As such, it is the recommended format for most documents. Original PDF file will remain unchanged.

Parameters

BSTR_inFile
String containing full path and filename or just filename of PDF file that will be converted to RTF file.

BSTR_outFile
String containing full path and filename or just filename of RTF file representing the result of conversion.

Returns

true if PDF file is successfully converted to RTF, false otherwise.

Example

InvestintechConversionDLL_PDF_to_RTF_Normal(bstr_inputFile, CA2W("out_std.rtf"));

return to top


InvestintechConversionDLL_PDF_to_RTF_Frames

bool InvestintechConversionDLL_PDF_to_RTF_Frames(BSTR BSTR_inFile, BSTR BSTR_outFile)

Description

The InvestintechConversionDLL_PDF_to_RTF_Frames() method converts file from PDF to RTF file with frames so any version of Microsoft Word can open destination file. In this case the most precise conversion algorithm is used. Usage of this method will result in the converted RTF output retaining the background graphics and layout of the selected pages and items, but with the text appearing in individual text boxes in a new document. This conversion is ideal for users that prefer to work with text boxes which can be easily moved within a document. Under certain circumstances, because the text boxes are designed to correlate with the structural positioning of the original PDF document, it may be possible to generate a more accurate layout than with the InvestintechConversionDLL_PDF_to_RTF_Normal() method. Resulting RTF file can be saved as Microsoft Word DOC file. Original PDF file will remain unchanged.

Parameters

BSTR_inFile
String containing full path and filename or just filename of PDF file that will be converted to RTF file with frames.

BSTR_outFile
String containing full path and filename or just filename of RTF file with frames representing the result of conversion.

Returns

true if PDF file is successfully converted to RTF, false otherwise.

Example

InvestintechConversionDLL_PDF_to_RTF_Frames(bstr_inputFile, CA2W("out_frm.rtf"));

return to top


InvestintechConversionDLL_PDF_to_RTF_Simple

bool InvestintechConversionDLL_PDF_to_RTF_Simple(BSTR BSTR_inFile, BSTR BSTR_outFile)

Description

The InvestintechConversionDLL_PDF_to_RTF_Simple() method converts file from PDF to RTF file so any version of Microsoft Word and WordPad can open destination file. This conversion option will only convert the text portions of selected items. The text will appear as a standard paragraph without special formatting or text boxes in a new Word document. This conversion is most useful when preserving the look and feel of the PDF in RTF format is not important, but the user desires easy access to the text information. Resulting RTF file can be saved as Microsoft Word DOC file. Original PDF file will remain unchanged.

Parameters

BSTR_inFile
String containing full path and filename or just filename of PDF file that will be converted to text-only RTF file.

BSTR_outFile
String containing full path and filename or just filename of text-only RTF file representing the result of conversion.

Returns

true if PDF file is successfully converted to RTF, false otherwise.

Example

InvestintechConversionDLL_PDF_to_RTF_Simple(bstr_inputFile, CA2W("out_txt.rtf"));

return to top


InvestintechConversionDLL_PDF_to_CVS

bool InvestintechConversionDLL_PDF_to_CVS(BSTR BSTR_inFile, BSTR BSTR_outFile)

Description

The InvestintechConversionDLL_PDF_to_CVS() method converts file from PDF to Comma Separated Values (CVS) format. Original PDF file will remain unchanged.

Parameters

BSTR_inFile
String containing full path and filename or just filename of PDF file that will be converted to CVS file.

BSTR_outFile
String containing full path and filename or just filename of CVS file representing the result of conversion.

Returns

true if PDF file is successfully converted to CVS, false otherwise.

Example

InvestintechConversionDLL_PDF_to_CVS(bstr_inputFile, CA2W("out.cvs"));

return to top


InvestintechConversionDLL_IDString

char* InvestintechConversionDLL_IDString()

Description

The InvestintechConversionDLL_IDString() method returns vendor’s ID string.

Parameters

None.

Returns

" Investintech Conversion DLL Version 3.00 by Investintech.com Inc. " string.

return to top