Convert Office to image and set image size by command line

By way of VeryPDF Document Converter, using a command line to convert Office to images and set image size turns out to be simple and easy. This article will show how to do it, and the tool we are going to need is an application included in Document Converter: docPrint Pro Command Line. Three steps are going to be taken:

First, please download Document Converter and install it on the computer. Then you can find docPrint Pro Command Line in the installation folder. The executable file doc2pdf.exe is docPrint Pro Command Line which can be used to convert Office to image and set image size by command line.

Second, you should open a command prompt window. If you are in Windows XP, do one of the following:

  • Click Start to open the Start menu.
  • Select Run from the Start menu.
  • Type cmd in the Run dialog box and press Enter.

Or

  • Click Start.
  • Point to All Programs.
  • Point to Accessories.
  • Click Command Prompt.

Third, type a command line on the command prompt window that pops out. The command line must be in accordance with the following usage of the executable file doc2pdf.exe:

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

Regarding the options that can be used to set image size, there are two:-w <image width>, which  can be used to set image width; and -h <image height>, which  can be used to set image height. For both, unit is pixel.

For example, suppose you want to convert a PPT file to a GIF file, and set image size, your command line might like the following one:

  • doc2pdf.exe -w 200 -h 600 -i C:\source.ppt -o D:\target.gif

The following are some other examples:

  • doc2pdf.exe -w 206 -i C:\source.ppt -o D:\target.tiff
  • doc2pdf.exe -h 650 -i C:\source.ppt -o D:\target.png
  • doc2pdf.exe -w 240 -h 650 -i C:\*.ppt -o D:\*.pcx

This is how you can convert Office to images and set image size. Please press Enter after typing a command line. You can use docPrint Pro Command Line to set other options, too. If you are interested in other features of this application, 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!