Use docPrint command line to convert a document of doc to pdf

A common demand for office document processing is converting office documents to other formats. The application docPrint Document Converter is a multifunction tool that can convert Microsoft Word, PowerPoint, HTML, Web Page, RTF, Text, Excel, Visio, AutoCAD drawings, Adobe PDF, PS, EPS, e-mail files, etc, to PDF, Postscript, PS, EPS, EMF, WMF, XPS, PCL, PIC, PCD, GIF, TGA, JPEG, TIFF, BMP, PCX, PNG files, etc. This software supports both GUI and command line usage, and some methods of using its GUI can be found here, here and here. This article is to provide some usages of docPrint Document Converter command line tool.

To use the tool, please download the software at https://www.verypdf.com/artprint/index.html#dl and install it into your Microsoft Windows Operating System. You will find an executable file named “doc2pdf.exe” in the directory where docPrint Document Converter is installed (for this case, “C:\Program Files\docPrint Pro v5.0\”). This executable file will be called by the command line program, “cmd.exe”, for converting documents in the examples below.

You can add the directory path of doc2pdf.exe as a system environment variable and enable the system command line tool cmd.exe to call doc2pdf.exe in any directory directly. If the path of doc2pdf.exe is not added into the environment variables, you would have to call the program in its own directory or include its whole path string when calling it in other directories. Here is the guide to add the path to your system environment variables in Windows XP:

Right click on “My Computer” icon on your Windows OS desktop –> Choose “Advanced” tab in activated “System Properties” dialog –> Click “Environment Variables” button –> In group box of “User variables”, choose variable “PATH” and press “Edit” button –> Add the path of doc2pdf (“C:\Program Files\docPrint Pro v5.0” for this case) to the end of “Variable value” in “Edit User Variable” popup dialog box and press “OK” button –> Press “OK” in the “Environment Variables” dialog and “OK” in the “System Properties” dialog. Now doc2pdf.exe must be able to run in any directories (if it still can not be called in other directories, your might need to reboot your system to try again).

Launch cmd.exe of your system via one of the two ways: 1, “Start” menu –> Click “Run…” –> Input “cmd” in “Open” editable combo box and press “OK”; 2, Press and hold the “Windows” button and press “R” button of your keyboard –> Input “cmd” in “Open” editable combo box and press “OK”. Any one of the ways will start the command prompt window in your system and you could then change to any preferred path as your current directory for convenience.

Below are some examples of converting documents of doc to pdf using docPrint Document Converter command line tool, doc2pdf.exe. The basic usage of doc2pdf.exe is “doc2pdf –i <name>.<format>  [-o <name>.<format>]” where the argument string following option “-i” points to the source document and the string following “-o” specifies the target document name and format. Here is the command line of a practical example,

doc2pdf  -i doc_example1p.doc -o doc_example1p.pdf <Enter>,

with which the document “doc_example1p.doc” is converted to “doc_example1p.pdf” from doc to pdf.

The whole process is presented in the following screen snapshot.

image

The option “-o” for specifying output parameters is optional to be omitted. Using a command line omitting the “-o” option like

doc2pdf -i doc_example1p.doc  <Enter>

will lead you to a graphic interface, “Save As” dialog, for specifying the output parameters presented as follows. In the dialog as the snapshot shows, you may specify the output file path in “Save in” combo box, the output name in “File name” editable combo box and the target format in “Save as type” dropdown list. In the end, press “OK” button to finish the conversion. Your have to complete all the operations in no more than 300 seconds, otherwise the conversion will be aborted automatically and need to be restarted.

doc2pdfexe

The docPrint Document Converter command also supports batch conversion from more than one documents to one target format. An demo command line is

doc2pdf -i *.doc -o *.pdf <Enter>,

which converts all the doc documents in the current directory to pdf format and saves the target files in the same directory using their original names. The next screen snapshot of Windows Explorer presents that the three documents are converted from doc to pdf. For batch conversion, the “-o” option can NEVER be omitted in the command line.

image

There are much more supported options and arguments for docPrint Document Converter Command Line tool, and more details about these parameters and their usages are accessible at https://www.verypdf.com/artprint/document-converter/help.htm.

VN:F [1.9.20_1166]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.20_1166]
Rating: 0 (from 0 votes)

Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *


Verify Code   If you cannot see the CheckCode image,please refresh the page again!