Command Line Switch Specification

Full descriptions for each switch are shown below in order of importance:

Switch

Meaning

/J{File}

Specify a conversion job file (*.SII) to do. You must have previously created a conversion job file to use this switch.

/S{File}

Input File(s) to be converted.

 

A single file including its complete path can be specified for a single file conversion (i.e. "D:\MyFiles\MyWordFile.DOC".

 

If specifying a single file, make sure that the /T switch also specifies a single output file (i.e. "D:\MyFiles\TargetOutput.PDF".

 

Alternatively, you can specify whole directories by using the wildcard syntax (i.e. "D:\MyWordFiles\*.DOC"). If specifying a whole directory, make sure the /T also specifies a whole directory with a new output file extension. (i.e. "D:\MyFiles\*.PDF").

 

See also /R for subfolders.

/F #

File type of the Input file(s). The input file(s) path are specified with the /S switch. This switch specifies the file type of these file(s).

 

This switch is only required when using the 'Convert Doc' (/M2) conversion method. It will be ignored otherwise. When using MS Word (/M1) it you can use any file type that MS Word recognizes. When using PDF Conversion [M3], always use a PDF file as the input file type.

 

Please see File Type Constants table for valid values.

/T{File}

Output File(s) to be created after conversion. These files are created from the Input file(s) and the conversion method selected.

 

If specifying a single file, make sure that the /S switch also specifies a single input file (i.e. "D:\MyFiles\TargetOutput.DOC".

 

Alternatively, you can specify whole directories by using the wildcard syntax (i.e. "D:\MyWordFiles\*.PDF"). If specifying a whole directory, make sure the /S also specifies a whole directory with an input file extension. (i.e. "D:\MyFiles\*.DOC")

 

This switch is ignored if the /G Switch is used.

/C #

File type of the Output file(s). The output file(s) path is specified with the /T or /G switch. This switch specifies the file type of these file(s).

 

Please see File Type Constants table for valid values.

/G

Save files to their input folders. Use this instead of /T to place the converted files in the same folder as the input file. Cannot be used when converting a single, specified file from within a folder. Use the /T switch instead.

/V

Verbose mode. Specify this switch to display a message box indicating how the conversion went. See also /L

/R

Seek out and process all files found in the sub-folders specified in the /S switch. Recursive subdirectories. You may add this switch if you are processing whole directories of files. See /S, /T and /G for more details on selecting whole directories to be converted.

/M #

Specifies the Conversion Method to be used. The following values are valid:

 

1 = MS Word

2 = 'Convert Doc' (Default value)

3 = PDF File Conversion

 

This switch is not required if you are using the 'Convert Doc' method.

 

See Conversion Methods for additional details for selecting this value.

/L{File}

Log file path and name (i.e. d:\mylogs\WCE.LOG) If this switch is specified a log file with the given path and name will be created and the results of the conversion will be written to it. See also /V

/B{File}

Save the Log file as a conversion job ONLY IF ERRORS OCCURRED. This is useful if the files that had problems can be done at a later time, or with a different method. /B is different from /L, since the file generated with /B will not include extraneous comments not allowed in a conversion job file. Save as a .SII file type so it can be loaded as a job.

/E

Very Fast PDF to TXT or PDF to HTM conversion. Use this for super fast conversions. It will work on most PDFs but may be problematic for PDFs created with lesser known PDF editors.

/A#

Advanced PDF to RTF options (General Section of ‘Convert Doc’ version 4.14 or earlier). The number used in this parameter is used to specify several things. You may use this switch as many times as you wish. Not specifying a particular option will cause it to default to what was last set by the user in the application (i.e. while not running in the command line).

DOCUMENT LAYOUT

1 = Single Column Layout 

2 = Multi-Column Layout 

3 = Pleading 

 

CONVERSION METHOD

5 = Preserve Layout Using Spaces and Tabs 

6 = Detect Headers TRUE  

7 = Detect Headers FALSE  

8 = Text Flow  

9 = Use TEXT BOXES for EXACT placement 

10 = Merge Text TRUE 

11 = Merge Text FALSE 

12 = Adjust Spacing TRUE 

13 = Adjust Spacing FALSE 

 

TEXT OPTIONS

20 = Include Text TRUE 

21 = Include Text FALSE 

22 = Merge Paragraph TRUE

23 = Merge Paragraph FALSE 

24 = Shrink Fonts TRUE

25 = Shrink Fonts FALSE 

26 = Adjust Font Names TRUE 

27 = Adjust Font Names FALSE 

28 = Extract Hyperlinks TRUE 

29 = Extract Hyperlinks FALSE 

 

For example the line below converts a PDF file to RTF using the single column layout with Text Boxes for exact position, and Merges Text.

 

'/SE:\Delme\simple.pdf /Te:\delme\Tryme.RTF /M3 /C3 /A1 /A9 /A10

 

[/I{File}]

Use a specified (and not the default) initialization file for 'Convert Doc'. This allows you to be able to specify all settings that are in the user interface from the command line, which is especially useful for those few items not available through specific command line switches. The default initialization file can be used as a template and is located at C:\Windows\CD_SearchHistory.INI

[/W{PDF File Open Password}]

When converting TO a PDF file, you can specify a File Open password using this switch. The Example below makes the word Apples the password to open the newly created PDF file:

 

ConvertDoc.EXE /S "c:\input files\tryme.doc" /T "c:\input files\tryme.pdf" /F9 /C12 /M2 /V /WApples

All Command Line Switches

More:

Complete List of Command Line Examples

Using 'Convert Doc' - Command Line

Command Line Switch Specification

File Type Constants Specification

Helpful Hints For Creating a Command Line