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

ConvertToExcel Method

Convert a PDF document to an CSV/XML document.

Sub ConvertToExcel(InputFileName As String,
                  OutputFileName As String,
                  [Password] As Variant,
                  [From] As Variant,
                  [To] As Variant)

void ConvertToExcel(string InputFileName,
                   string OutputFileName,
                   string Password,
                   int From,
                   int To)

void ConvertToExcel(String InputFileName,
                   String OutputFileName,
                   String Password,
                   int From,
                   int To) throws PDF2ExcelException


Parameters

InputFileName

Input file name in absolute path format.

OutputFileName

Output CSV/XML file name in absolute path format.

Password (optional)

Password to open the PDF document, if any.

From (optional)

The starting page number to convert.

To (optional)

The ending page number to convert.

Exception Handling

Please refer to the list of return exceptions.

Example Usage


On Error GoTo Convert_Err

        oConverter = CreateObject("EasyConverter.PDF2Excel.5")
        Call oConverter.ConvertToExcel(inFileName, outFileName)
        MsgBox("Success", vbOKOnly + vbInformation)

Convert_End:

        oConverter = Nothing
        Exit Sub

Convert_Err:

        ' Handle error
         MsgBox("Error(" + CStr(Err.Number) + ")", vbOKOnly + vbInformation)

        Resume Convert_End