Convert Excel to PNG and set color depth via command line

When you use VeryPDF Document Converter (docPrint Pro) to convert Excel to PNG via command line, you can also set color depth by adding an option to the command line. You can get color images or black and white images by Setting color depth. This article will introduce how to use VeryPDF docPrint Pro to convert Excel to PNG and set color depth via command line. Three steps are required.

The first step is to download VeryPDF docPrint Pro. VeryPDF docPrint Pro is also named VeryPDF Document Converter. It has a command line version and a GUI version. In this article we only talk about the command line version. And this command line application is an all-to-all document converter. Hence, if you want to convert other types of documents, you can also use it to solve the problem.

The second step is to open the command prompt window. You can open the command prompt window in different ways. For instance, under Windows XP, you should click Start on the screen, >click Run on the Start menu, > type cmd in the Run dialog box, > press Enter.

The third step is to type a command line and press Enter. If you need to take a look at the usage of the executable file and the options before you type a command line, please type the directory of the executable file in the command prompt window and press Enter. Or you can look at the usage and the related option as follows:

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

Option: -b <color depth> : specify color depth for output file

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

Examples:

  • “C:\docPrint Pro v5.0\doc2pdf.exe” -b 1 -i D:\in.xlsx -o D:\out.png
  • “C:\docPrint Pro v5.0\doc2pdf.exe” -b 24 -i D:\*.xls -o D:\*.png

The first example can be used to convert one Excel file to a black and white PNG image file. The second example can be used to convert multiple Excel files to color images. Don’t forget to press Enter after typing a command line.

I hope the method introduced here is helpful. Do you know how to use VeryPDF docPrint Pro to convert Excel to PNG and set color depth via command line now? If you have any question, please leave a message and feel free to ask! Thanks for reading.

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!