Convert Excel to image and set image size via command line

With the assistance of VeryPDF Document Converter (docPrint Pro) , you can quickly and easily convert Excel to image files and set image size via command line.

The first step you need to take is to download VeryPDF docPrint Pro. VeryPDF docPrint Pro has a command line version as well as a GUI version. But in this article, we are only talking about the command line verion. If you don’t want to buy VeryPDF docPrint Pro right now, it’s ok. You can use it free for 50 times. Click docPrint Proto get it and install it on your computer.

The second step is to open the command prompt window. As a Windows XP user, I would like to introduce two ways to open the command prompt window in XP. The simpler way is to click Start first and click Command Prompt at the Start menu second. The other way is to click Start, > Run, > type cmd, > press Enter.

The last step is to type a command line and press Enter. Supposing you are going to use a command line to set image size as you convert Excel to images such as PNG images, you need to take a look at the following usage, options, and examples:

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

Options:

  • -w <image width> : set width to generated image files, unit is pixel
  • -h <image height> : set height to generated image files, unit is pixel

Examples:

  • “C:\docPrint Pro v5.0\doc2pdf.exe” –w 150 -i D:\*.xls -o D:\*.png
  • “C:\docPrint Pro v5.0\doc2pdf.exe” –h 400 -i D:\*.xls -o D:\*.png
  • “C:\docPrint Pro v5.0\doc2pdf.exe” –w 150 –h 400 -i D:\*.xls -o D:\*.png

The first example can set width for the output image files. The second one can set height. And the third one can set both width and height. All the examples are used to do batch conversion from Excel to images. If you want to convert a single excel to image and set image size, please take a look at the following example: “C:\docPrint Pro v5.0\doc2pdf.exe” –w 150 –h 400 -i D:\in.xls -o D:\out.png. After typing a command line, don’t forget to press Enter.

This is the method I use to Convert Excel to image and set image size via command line. Isn’t it simple? I you have any question, please leave message.

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!