A full description for each switch is shown below:
Switch |
Meaning |
/J{File} |
Specify a 'Conversion Job' file (*.SII) to be done. You must have previously created a 'Conversion Job' file to use this switch. |
/S{File} |
Input PDF File(s) to be converted.
A single file including its complete path can be specified for a one file conversion. For example: /S"D:\MyImageFiles\AccountsDetail.PDF"
If specifying a single file, make sure that the /T switch also specifies a single output file. For example: /T"D:\OutputFiles\Out.BMP"
Alternatively, you can specify whole folders by using the wildcard syntax. For example: /S"D:\MyImageFiles\*.pdf" If specifying a whole folder, make sure the /T also specifies a whole folder. For example: /T"D:\OutputFiles\*.TIF"
Use double quotes around the path to ensure it works properly.
See also /R for sub folders. |
/T{File} |
Output File(s) to be created when converting the Input file(s) to images.
See the /S{File} switch description for proper use of the /T{File} switch when specifying a single or multiple files to convert.
This switch is ignored if the /G switch is used. |
/C # |
Tells 'Convert PDF To Image' what the output file type is. This is mandatory if your /T switch specifies a non-standard output file type extension (for example /TC:\AmbiguousFileType.abc ) . You must supply a number for the # symbol. For all possible numbers see File Type Constants. The /C switch is not needed if your /T switch specifies a standard file type extension. |
/G |
Save files to the same location as the input folder(s). 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 file. For a single file use the /T switch instead. You must use the /C# switch when using the /G switch.
Files will be saved with the same name as the input but with a different file extension as specified by the /C# switch. You cannot specify a different name for the output file when using the /G switch. |
/V |
Verbose mode. Specify this switch to display a message box indicating how the conversion went. See also /L and /E. |
/R |
Recursive sub folders. Seek out and do all files found in the sub-folders specified in the /S switch. You may add this switch if you are processing whole folders of files. See /S, /T and /G for more details on selecting whole directories to be converted. |
/L{File} |
Log file path and name (e.g. /L"D:\MyLogs\ConvertPDFtoImage.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 and /E. |
/B{File} |
Save the Log file as a 'Conversion Job' ONLY IF ERRORS OCCURRED. This is useful if the files that had problems, they can be done at a later time, perhaps with a different method. /B differs from /L, since the file generated with /B will not include extraneous comments not allowed in a 'Conversion Job' file. Use the *.SII file type extension so it can be loaded as a job. |
/1{Pages To Convert} |
PDF pages to convert. For example if you have a multi page PDF and you want to convert pages 2-5 use /1 2-5 . ALWAYS put a space after the 1 in /1. To do page nine for example use /1 9 |
/3{TRUE/FALSE} |
[NOT YET IMPLEMENTED] Append to existing when converting to a TIFF. Use /3 TRUE to append or /3 FALSE not to. |
/4{JPEG Quality}
|
JPEG: Quality of the resulting JPG from 0 to 100 (default is 100). 0 is lowest and 100 is highest quality. The higher the quality the larger the resulting output file. Use /4 100 for highest quality. |
/5{Resolution} |
Resolution specified in DPI. Default is 150. |
/6{Width} |
Width of the output image in pixels. See bottom of this topic for additional notes on specifying width and height. |
/7{Height} |
Height of the output image in pixels. See bottom of this topic for additional notes on specifying width and height. |
/8{TiffConvertToSingleFile } |
If you are converting multiple pages in a PDF file to a TIFF, you can have a single file output or multiple file output. Use: /8 1 to create a single file or /8 0 to create multiple output files (default). Not specifying this switch will result in multiple TIF files being created. |
/E |
Specify an ERRORLEVEL (return code) upon closing the application. The installation includes a sample BAT file illustrating the usage of /E (look for CPTI_TestCommandLine32.bat or CPTI_TestCommandLine64.bat). The following ERRORLEVELs are possible: 3 = Missing or invalid command line arguments 2 = Error occurred during conversion 1 = Shareware expired 0 = Success See also /L and /V. |
Table Above: All Command Line Switches
Width and Height Specification
If you specify one (width or height) as zero (or don't specify it), and the other as greater than zero, the one specified as zero will be sized in order to retain the aspect ratio. For example, if you specify a width of 100 and a height of 0, the height will be automatically adjusted to retain the aspect ratio. If both Length and Width are specified as 0, the size of the image will be the same as the original within the PDF. If length or width is specified as negative, it will be assigned the same as the original length or width respectively. This was done as in most cases the aspect ratio is desired to be retained.
See Also:
Helpful Hints for Creating a Command Line
Specifying a Conversion Job File