Helpful Hints for Creating a Command Line

The installation includes a sample BAT file illustrating the usage of the command line (look for CPTI_TEST.bat).

 

HINT 1: It is highly suggested you first attempt your task using the User Interface prior to attempting to create an equivalent command line. Reasons for this are:

 

·      Make sure what you want to do can be done at all

·      Makes you aware of exactly what must be specified in the command line

·      You can very quickly test the command line by doing the easiest of all approaches, specifying a 'Conversion Job' file by using the /J switch.

 

HINT 2: It is highly encouraged that at least during the initial creation of the command line that you use the Verbose (/V) switch to see what the status of your conversion is and get any error messages. /V shows you a message telling you how the command line went. If you are not getting any message at all while using the /V switch, then see hint 3 below, as you are probably not even executing the program. If you prefer a log file instead of a pop up message box, use /L{LogFilePath} instead of /V.

 

HINT 3: Command switches are case sensitive, therefore /F is completely different from /f.

 

HINT 4: If see the following error:

"ConvertPDFtoImage' is not recognized as an internal or external command, operable program or batch file."

Then please do one of the following:

 

A)   (Preferred method) Specify the full path to the executable. For example:

"c:\program files\Softinterface, Inc\Convert Document To Image\ConvertPDFtoImage.EXE” /J"D:\Jobs\ToDo.SII"

 

Alternatively if using a batch file you might try something like this:

set CPTI =“ C:\Program Files\Softinterface, Inc\Convert PDF To Image\”

%CPTI% /J"D:\My Conversion Job Files\ToDo.SII"

 

One more possibility is to simply change the active folder before calling the application:

CD C:\Program Files\Softinterface, Inc\Convert PDF To Image

ConvertPDFtoImage /S"C:\In\Coffee.pdf" /C1 /T "C:\Out\Cream.jpg" /1 * /4 75 /5 200 /V

 

B)   Set the path operating system variable to the location of ConvertPDFToImage.EXE

 

Also, it is suggested you use fully qualified paths for any files you specify. You can however specify the current folder by using “.\” syntax. Use double quotes around the input and output files (/C and /F) if they are long file names.

 

NOTE: Copying ConvertPDFToImage.EXE from the installation folder to some other folder is not likely to work well, so instead try one of the methods above.

 

HINT 5: Windows Vista, Windows 7 and newer: These operating systems use a feature called User Account Control (UAC) to safeguard your computer. If you have UAC enabled and you are specifying an output folder that is protected, the files will be created in the %localappdata%\VirtualStore\ folder. To find the output files type in %localappdata%\VirtualStore\ in Windows Explorer. If you think UAC is having an effect on the command line you can quickly change the name of the program in your command line from ConvertPDFtoImage.EXE to ConvertPDFtoImage.Admin.EXE. Doing this will enable a prompt to elevate security before the command line is fully executed.

 

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