How to convert Word to PNM and set color depth via command line?

This article would like share some tips with you on how to convert Word to PNM and set color depth via command line. At first, let me briefly introduce what is color depth. Color depth also named bit depth. It refers to the number of bits of a pixel. The lower the color depth, the less color can an image contain. For example, if the color depth is 1-bit, then the image would be black and white. If the color depth is 8-bit, grey would be added. If the color depth is 24-bit, the image would be colorful.

Using command line can help you save a lot of time, since you don’t need to waste time on clicking buttons and opening files and folders. If you know how to use it, you can launch programs directly without opening the folders that contains it. This following part will use VeryPDF Document Converter (docPrint Pro) and take it as an example to show how to convert Word to PNM and set color depth via a single command line. Three steps may be required.

First, download VeryPDF Document Converter (docPrint Pro). VeryPDF Document Converter provides multiple versions. Please select the command line version to download and install on the computer.

Second, open the command prompt interface. VeryPDF Document Converter supports all Windows operating systems. For example, if you are in Windows XP, you can open the command prompt window by clicking Start to open the Start menu. >Click Run , > type cmd, > click OK.

opent he command prompt to type a command line

Third, type a command line and press Enter on your keyboard. The basic usage of the main executable file named doc2pdf is doc2pdf [options] <-i Document Files> [-o Output]. If you want to set color depth, you are going to use the option -b <int>, which can be used to set color depth for output file. Three parameter values are permitted:

-b 1          : output black and white image file
-b 8          : output 256 colors image file
-b 24         : output True Colors image file

For example, if you want to generate a PNM file in black and white, you can type one as follows: “C:\docPrint Pro v5.0\doc2pdf.exe” –b 1 -i C:\in.doc -o D:\out.pnm

Try to take the three steps to convert Word to PNM with the assistance of VeryPDF Document Converter, you will find it is a really useful tool.

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!