Specifying a 'Conversion Job' File to Run from the Command Line

The first thing to be done is to create the Conversion Job file by using the ‘Convert PDF To Image’ graphical user interface. Basically, you detail each conversion task and Add it (by clicking the Add button) to the tasks to be done. Once you are satisfied with the task list, save the Conversion Job file from the File menu.

NOTE: Before saving, be sure that you click the 'Rewind' button on the toolbar to ensure that the entire task list is executed from the command line.

The syntax for specifying a Conversion Job file from the command line is:

 

ConvertPDFtoImage.exe /J{ConversionJobFile} [/V] [/L{LogFile}] [/B{LogToJobFile}] [/Z]

 

Items above enclosed in square brackets “[ ]” are optional, all other ‘switches’ are required. Therefore /J should always be specified on the command line. Command switches are case sensitive, therefore /F is completely different from /f.

/J{ConversionJobFile} is the name of the Conversion Job previously created from the graphical user interface.

 

[/V] Verbose mode. Specify this switch to display a message box indicating success or failure after the job has run. See also /L.

 

[/L{LogFile}] Log file path and name (e.g. d:\mylogs\CITP.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{LogToJobFile}] 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.

 

[/Z] Verbose Log. All file operations will be recorded in the log

 

Example:

To run the 'Conversion Job' specified by the "C:\MyJobs\ApplesOranges.SII" type the following in at the command prompt:

 

ConvertPDFtoImage.EXE /J "C:\MyJobs\ApplesOranges.SII"

The following will run the SummaryData.SII job, display job results as a message box to the user, and create a log file called SumData.LOG

 

ConvertPDFtoImage.EXE /J "C:\MyJobs\SummaryData.SII" /V /L "C:\MyJobs\LogFiles\SumData.LOG"

You can include or exclude spaces between switches and parameters. For example, "/C6" is the same as "/C 6". For long file names you may be required to use double quotes. For example /J "C:\Program Files\MyApp\MyDoc.DOC".

 

NOTE: If you see the following error or have any other issues: "ConvertPDFtoImage is not recognized as an internal or external command, operable program or batch file."

Then please read Helpful Hints For Creating a Command Line for further assistance.

See Also:

Helpful Hints for Creating a Command Line

Command Line Examples

Specifying a Conversion Task

Specifying a Conversion Job File

Using the Command Line

All Command Line Switches

Image File Type Constants