The following URL contains a comprehensive list of examples that show how to use ConvertITP from the command line:
http://www.softinterface.com/Convert-Image-To-PDF/Command-Line.ASP
The following examples are extremely useful for understanding how to use the command line parameters. Choose from the examples below and modify according to your needs.
Note: You will need to supply the entire path to the executable file which we have condensed to ConvertITP.EXE in these examples. Your command line text will likely need to include the following "C:\Program Files\SoftInterface, Inc\Convert Image To PDF\ConvertITP.exe". This assumes you accepted the default location when installing ConvertITP.
Example 1: Single File Conversion
Specify the source (/S) and output files (/T), the .bmp format (/F0) of the source file, with on-screen confirmation (/V):
ConvertITP.EXE /S "C:\Samples\Coffee.bmp" /T "C:\Samples\Output\CoffeeOut.pdf" /F0 /V
Example 2: Single File Conversion With Log File Creation
Specify the source (/S) and output files (/T), the .jpg format (/F2) of the source file, and create a log file (/L) containing the confirmation information:
ConvertITP.EXE /S "C:\Samples\Ripple.jpg" /T "C:\Samples\Output\Ripple.pdf" /F2 /L"C:\Samples\LogFiles\OutputLog.LOG"
Example 3: Single File Conversion, Specify PDF Attributes
Specify the source (/S) and output files (/T), the .png format (/F13) of the source file and specify Author (/A), Keyword (/K) and Title (/I) properties for the .pdf file. Note that, after creating the .pdf file, properties can be viewed through Internet Explorer by right clicking on the file, displaying properties then selecting the PDF Properties tab:
ConvertITP.EXE /S "C:\Samples\CITPIcon.png" /T "C:\Samples\Output\Icon.pdf" /F13 /A SoftInterface.com /K Logo /I Application Logo
Example 4: Whole Folder Conversion
This example shows you how to convert all files of a particular type within a folder by using the wildcard (*). Specify the source (/S), in this case all .jpg files in the Samples folder, the output (/T), and .jpg format (/F2) of the source files. Display on-screen confirmation (/V) and create an error job file (/B) only if an error in conversion occurs:
ConvertITP.EXE /S "C:\Samples\*.jpg" /T "C:\Samples\Output\*.pdf" /F2 /V /B "C:\Samples\ErrorLogs\Error.SII
Example 5: Whole Folder Conversion, Place output in Input Folder
Convert all .bmp files in the Output folder using the wildcard (/S), save them to the same folder as the input files with the same names (/G). Create a log file (/L) with results of the conversion and create an error job file (/B) only if an error in conversion occurs:
ConvertITP.EXE /S "C:\Samples\Output\*.bmp" /G /F0 /L "C:\Samples\LogFiles\OutputLog.LOG" /B "C:\Samples\ErrorLogs\Error.SII
See also:
Helpful Hints for Using the Command Line
Specifying a 'Conversion Job' File to Run From The Command Line
Specifying a 'Conversion Task' form the command line