The usage step of CZ-Pdf2Txt COM for acrobat reader

You can use CZ-Pdf2Txt COM for acrobat reader to convert pdf to text in following ways:
1. As Execute Program
2. As Plug-ins of Adobe Acrobat
   a. Batch Convert
   b. Current Convert
3.  As COM/command line interface
   a. command line interface
   b. COM interface

1. Use CZ-Pdf2Txt COM for acrobat reader As Execute Program

You only click "start" menu -> "program" menu -> "CZ-Pdf2Txt COM for acrobat reader Demo" menu -> "CZ-Pdf2Txt COM for acrobat reader" menu, then show the following dialog.

How does "Manual Convert" work?
Please click "Manual Convert" tab sheet, you can simply press the "add files" button, then select the files to batch conversion list with ctrl or shift key, or click the "add folders" button to select the file folder. finally press the "convert" button, in a short time you will have finished conversion!

How does "Folder Watcher" work?
Please click "Folder Watcher" tab sheet, then click "Add Watch" button, and show a "Add Watch" dialog, and input "Source File Path", "destination File Path" and "File Filter", press "OK" button, you will add a file watch to folder watcher list. finally press "Start Watch" button, while the word documents are copied to the source path, then this folder watcher can automatically convert them into viewable html format of destination file path.

2. Use CZ-Pdf2Txt COM for acrobat reader As Plug-ins of Adobe Acrobat

a. Batch Convert
If you want to batch convert pdf to text, you can involve the following steps:

1). Simply run Acrobat, Going to the "ConvertZone" menu -> Selecting "CZ-Pdf2Txt COM for acrobat reader"-> Selecting "Batch Convert". CZ-Pdf2Txt COM for acrobat reader displays the following dialog box:

2). Select delimit symbol in table of pdf, you can appoint tab, comma, blank, semicolon, or other char as the delimit symbol.

3). Select the pdf files you want to convert, use ctrl key to multi-select or use mouse to multi-select, then click "open" button.

4). After the conversion process, you can find the new generating text files in same directory.

b. Current Convert
If you want to convert selected pages from current pdf file, you can Involve the following steps:

1). Simply run Acrobat, open the pdf file converted, going to the "ConvertZone" menu -> selecting "CZ-Pdf2Txt COM for acrobat reader"-> selecting "Convert Current Pdf". CZ-Pdf2Txt displays the following dialog box:

2). Select delimit symbol in table of pdf, you can appoint tab, comma, blank, semicolon, or other char as the delimit symbol.

3). You can choose either "All Pages", "Current Page" or  "Pages" to convert. then simple click "Convert Current" button.

4). After the conversion process, you can find the new generating text files in same directory.

3.  Use CZ-Pdf2Txt COM for acrobat reader As COM/command line interface

a. command line interface

How to use command line run?
usage:  
cz-pdf2txt [/f:] [/d:destination path] [/s] [/h] [/?]

       <file path>    

the path and files want to be converted, for example, d:\*.pdf

[/f:]destination file format code
the format code list is following:
2      text file (default value)
-4    CSV (comma delimited) file
-5    tab text (tab delimited) file
-6    semicolon text (semicolon delimited) file
you can find file format code in GUI, please see following red frame.

      [/d:destination path] 

the destination file path

        /s               

include the files in subfolders

        /?               

show help

example 1:  
convert all pdf files in disk d to CSV files, the destination path is d:\destination 
            cz-pdf2txt d:\*.pdf /f:-4 /d:d:\destination /s
example 2:  
convert all pdf files in d:\ dir to tab text files and include subfolders
           cz-pdf2txt d:\*.pdf /f:-5 /h /s

b. COM interface

What's CZ-Pdf2Txt COM for acrobat reader Methods?
ConvertFolder Method
Convert pdf files in folder to text files.
Syntax
strValue = oCZPdf2TxtCOM.ConvertFolder(SrcFilePath,DestFilePath,DestFileFormat,IsSubFolder,Option)
Parameters
SrcFilePath
  String specifying source file path, for example "c:\*.pdf"
DestFilePath
  String specifying destination file path, if blank then convert to current path.
DestFileFormat
  String specifying destination file format. and you can find destination file format code in gui, please see following red frame.

IsSubFolder
  Boolean. Flag that indicates whether convert file of sub folder. If true, convert file of sub folder. If false, do not convert file of sub folder.
Option
  String, reserve.
Returns
  String, return the conversion error reason, if return is blank, then convert successfully, otherwise is error reason.
VB Example
The following VB example convert "c:\*.pdf" to CSV text file, not include file of sub-folder, the conversion result is in "d:\":
    dim ConvertCom as object
    dim sResult as string
    set ConvertCom=CreateObject("CZRPdf2Txt.ConvertApplication")
    sResult=ConvertCom.ConvertFolder("c:\*.pdf","d:\","-4",false,"")
    if sResult="" then
        msgbox "Convert OK!"
    else
        msgbox "Convert Failure, error reason is" & sResult
    set ConvertCom=nothing
DELPHI Example
The following DELPHI example convert "c:\*.pdf" to TAB text file, not include file of sub-folder, the conversion result is in "d:\":
    var ConvertCom: Variant;
    sResult:string;
    ConvertCom := CreateOleObject('CZRPdf2Txt.ConvertApplication');
    sResult:=ConvertCom.ConvertFolder('c:\*.pdf','d:\',"-5",false,'');
    if sResult='' then
        showmessage('Convert OK!')
    else
        showmessage('Convert failure, error reason is ' + sResult);
    ConvertCom:=UnAssigned;

How to use COM component/object in DELPHI?
1. COM Init
  Example:
    var ConvertCom: Variant;
    ConvertCom := CreateOleObject('CZRPdf2Txt.ConvertApplication');
2. COM Method
  Example:
    sResult:=ConvertCom.ConvertFolder('c:\*.pdf','d:\',"-4",false,'');
3. Close COM
  Example:
    ConvertCom:=UnAssigned;
Please click here to download the complete delphi 5.0 example.

How to use COM component/object in VB?
1. COM Init
  Example:
  set ConvertCom=createObject("CZRPdf2Txt.ConvertApplication")
2. Com Method
  Example:
    result=ConvertCom.ConvertFolder("c:\*.pdf","d:\","-5",false,"")
3. Close COM
  Example:
    set ConvertCom=nothing