How to convert Word to PDF via command line?

Maybe, some of you don’t have the latest version of Office 2010. Maybe some of you don’t have Adobe product on the computer. Maybe, some of you need to convert Word to PDF in batch, so you want to using command line to save your precious time. The method which is going to be introduced in this article is a very quick way to convert Word to PDF files. Only two steps are required. But first you may need to download a command line application.

This command line application should support all the types of Word document, and supports batch conversion. There are a lot such applications available online. But not all of them can well preserve the original layout, text, multi-column, etc. Some of them may require the installation of Office Word and Adobe products. I would like to introduce the tool I use to convert Word to PDF. It’s named VeryPDF Document Converter or VeryPDF docPrint Pro. You can download the command line version of it from the product webpage of it.

Using VeryPDF Document Converter to convert Word to PDF via command line requires two steps:

Step 1

First you should open the command line interface. This application supports all versions of Windows OS. For instance, if you are in Windows 7, you can do as follows to open it: click Start to open the Start Menu.> In the Start Menu search box area, please type cmd, > and then press Enter on the keyboard.

the 1st step to convert Word to PDF via command line

Step 2

Type a command line in the command prompt interface. The command line should base on the following pattern: doc2pdf [options] <-i Document File> [-o Output file]. For example, you can type a command line as the following example:

“c:\docPrint Pro v5.0\doc2pdf.exe” -i c:\in.doc -o d:\out.pdf

This example is composed of three parts: “c:\docPrint Pro v5.0\doc2pdf.exe” is the directory of the executable file. If there is no space in the directory you don’t need to use a pair of quotation marks to enclose the directory. -i c:\in.doc represent the example input file. –i refer to input, and following c:\in.doc is the directory of the input file. -o d:\out.pdf represents the example output file. –o refer to output, and following d:\out.pdf is the directory of the output file.

All the directories in the example can be changed. If you want to convert Word to PDF in batch, use *+file extension to represent all files in one folder. After you type a command line, don’t forget to press Enter on your keyboard.

The two steps can lead you to generate a PDF file in high quality. If you think VeryPDF Document Converter is useful, please recommend it to your friends. If you think there is a better method, please share your method with me. Thanks a lot!

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

This entry was posted in docPrint Pro and tagged . Bookmark the permalink.

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!