Convert Office to grayscale image by command line

With VeryPDF Document Converter (docPrint Pro) installed on the computer, it’s easy to convert documents created by Office to grayscale images by command line. Document Converter does not require third-party applications. It supports over 100 image formats.

This article will show you how to use docPrint Pro Command Line, one of the command line applications provided by Document Converter, to convert Office to grayscale images. Technically, docPrint Pro Command Line is the executable file entitled doc2pdf.exe placed in the installation folder. You need to take two steps to get the job done.

First, please run Command Prompt, a command line interpreter provided by Windows. You can do as follows to run Command Prompt:

  • Open the Start menu by clicking Start on the left side of the task bar at the bottom of the screen.
  • Move the mouse cursor to All Programs.
  • Point to Accessories.
  • Click Command Prompt.

The Command Prompt window appears on the desktop, and you can proceed to the next step.

Second, you need to type a command line which should be based on the usage of doc2pdf.exe:doc2pdf [options] <-i Document Files> [-o Output].  The option that can generate grayscale images is -y, which does not require an argument. For instance, if you want to convert a PPT file, which is of a common Office file type, to a grayscale SVG image file, your command line will be similar to the following:

doc2pdf.exe -y -i C:\source.ppt -o D:\target.svg

  • doc2pdf.exe—calls the executable file
  • -y—generates grayscale files
  • -i—stands for input, requiring the input path as its argument
  • C:\source.ppt—input path
  • -o—stands for output, requiring the output path as its argument
  • D:\target.svg—outoput path

Please remember to press Enter after you type a command line. This is how you can convert Office to grayscale image files by command line. You can also set other options like resolution, page orientation, paper size, and color depth. If you want to see more options, please type the path of the executable file of doc2pdf.exe on the command prompt window and press Enter. Then, all the options will be displayed there.

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!