Convert Office to PDF by command line

If you have Office 2010 on your computer, converting a document created by Office to PDF is pretty simple. For example, if the source document is a Word document, you can use Office Word to open the document first and then save it as a PDF file.

If you don’t have Office 2010, or need to convert a bunch of Office documents to PDF at a batch, you are going to need a document converter. This article recommends VeryPDF Document Converter. Among the four applications provided by VeryPDF Document Converter, docPrint Pro Command Line is the tool that can help you convert Office to PDF by command line, without opening the source documents. Only three steps are required:

First of all, please download Document Converter and install it on your computer. If you want to find docPrint Pro Command Line, please do as follows:

  • Open the Start menu.
  • Click All Programs.
  • Click Document Converter (docPrint Pro)
  • Right click docPrint Pro Command Line
  • Select Properties from the list
  • Click Find Target in the dialog box that pops out.

Then, you will find that the executable file named doc2pdf.exe is highlighted in the window that appears. And doc2pdf.exe is docPrint Pro Command Line.

Second, please open a command prompt window. No matter you are in Windows XP or 7, you can use the same way to open the command prompt window:

  • Open the Start menu.
  • Point to All Programs.
  • Point to Accessories.
  • Click Command Prompt. The command prompt window appears and you can precede to the next step.

Third, type a command line on the command prompt window. To know what should be included in your command line, you should first take a look at the basic usage of  doc2pdf.exe. Type the path of it on the command prompt window and press Enter. Then the information will be displayed on the command prompt window. The usage is as follows:

doc2pdf [options] <-i Document Files> [-o Output]

For example, if you want to convert all the Excel in the root folder on disk D to PDF files, and export the output files to disk E, you can type a command similar to the following:

“C:\docPrint Pro v5.0\doc2pdf.exe” -i D:\*.xls -o E:\*.pdf

  • “C:\docPrint Pro v5.0\doc2pdf.exe”—the path of the executable file
  • -i D:\*.xls—input all the XLS files stored in the root folder on disk D.
  • -o E:\*.pdf—the output format is PDF. Export the output files into the root folder on disk D.

After typing your command line, please press Enter. I hope this article can help you convert Office to PDF. If you want to view more features of docPrint Pro Command Line, please visit: http://verypdf.com/artprint/index.html

VN:F [1.9.20_1166]
Rating: 10.0/10 (1 vote cast)
VN:F [1.9.20_1166]
Rating: 0 (from 0 votes)
Convert Office to PDF by command line, 10.0 out of 10 based on 1 rating

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!