If you have trouble running these examples please see Using the Command Line and Helpful Hints For Creating a Command Line.
To convert a single file, say D:\MyFolder\Doc1.DOCX to C:\Results Folder\Doc1.PDF use the following syntax:
ConvertDoc /S "D:\MyFolder\Doc1.DOCX" /T "C:\Results Folder\Doc1.PDF" /F13 /C12 /M2 /V
The /S and /T switches above specify Source (input) and Target (output) path respectively and are both required when converting a single file. It is always a good idea to use double quotes around the path especially if there are space characters within the path.
The /M2 switch tells ‘Convert Doc’ to use the ‘Convert Doc’ method (it is one of 3 different possible conversion methods).
/F13 is the input file type, which in this case is a word DOC file. Looking up the file types within the File Type Constants Specification for the ‘Convert Doc’ method will show that the numeric value of 13 corresponds to a DOCX file.
/C12 is the output file type, which in this case is a PDF file. Looking up the file types within the File Type Constants Specification for the ‘Convert Doc’ method will show that the numeric value of 12 corresponds to a PDF file. Use / C14 to convert to PDF/A-1b.
Finally, the /V (for Verbose) switch is used to give instant feedback by having the program report the status of the conversion with a message box. You can remove this once you have perfected your command line specification. You can also (or instead of /V) create a Log file that will contain the results of the conversion by using the /L switch.
Note: It is highly encouraged that you use the Verbose (/V) switch initially to see what the status of your conversion is and to help you perfect your command line. When in verbose mode the program will tell you what went wrong or right with your command line using message boxes.
HINT: You may use the /W switch to lock the pdf file with a File Open password. The Example below makes the word Apples the password to open the newly created PDF file:
ConvertDoc.EXE /S "c:\input files\tryme.docx" /T "c:\input files\tryme.pdf" /F13 /C12 /M2 /V /WApples
To convert all the DOC files in the D:\ToDo\ folder to PDF files in the same directory, the following syntax would be used.
ConvertDoc /S"D:\ToDo\*.DOCX" /T "D:\ToDo\*.PDF" /F13 /C12 /M2 /V
The /G switch can be used to tell ‘Convert Doc’ to simply place each output file in the same folder as each input file. Therefore the command line above is equivalent to the command line below:
ConvertDoc /S "D:\ToDo\*.DOCX" /G /F13 /C12 /M2 /V
To extend the previous example (immediately above) to convert all subfolders within D:\ToDo\ simply add the /R switch.
ConvertDoc /S "D:\ToDo\*.DOCX" /G /F13 /C12 /M2 /V /R
You may simply want to convert a whole folder and its subfolders and place the output into a separate folder/drive. In which case use this syntax:
ConvertDoc /S"D:\ToDo\*.DOCX" /T "C:\Done\*.PDF" /F13 /C12 /M2 /V /R