Convert Office to image and set color depth by command line

With the assistance of VeryPDF Document Converter (docPrint Pro), you can set color depth to make sure that you can convert office to images with high quality. This article aims to introduce docPrint Pro Command Line, an application that is included in Document Converter.

Please click Document Converter, download it and install it on your hard disk. Then, when you open the installation folder entitled docPrint Pro v5.0, you will find the executable file doc2pdf which is the thing that docPrint Pro Command Line denotes to. The following part focuses on how to use the executable file doc2pdf to convert office to images and set color depth.

First, please open a command line interpreter like Command Prompt, a native program provided by MS Windows. If you are in Windows XP, for example, you can do as follows:

  • Open the Start menu by clicking Start.
  • Select Run from the Run dialog box.
  • Type cmd in the Run dialog box and click OK.

Second, please type a command line on the basis of the usage of the executable file doc2pdf:

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

The option that can be used set color depth is -b <int>. Three values are permitted: 1, 8, and 24.

  • If the option is -b 1, black-and-white image file(s) will be generated.
  • If the option is -b 8, 256-color image file(s) will be generated.
  • If the option is -b 24, true-color image file(s) will be generated.

Supposing you want to create a black and white JPEG image from a Word document, your command line will be similar to the following one:

doc2pdf.exe -b 1 -i C:\source.doc -o D:\target.jpeg

For another example, if you want to create tiff image files with true colors from PPT files, you can type a command line similar to the following:

doc2pdf.exe -b 24 -i C:\*.ppt -o D:\*.tiff

Please type a command line on your computer, and press Enter. The computer will start the process as soon as possible.

This article only shows how to use docPrint Pro Command Line to set color depth when convert Office to images. If you are interested in the other options, or the other applications provided by VeryPDF Document Converter, please visit http://verypdf.com/artprint/index.html.

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!