Convert documents of webpage to image and set color depth by command line

For converting the document of webpage to image and set color depth of the target file, you need to choose an application that supports this kind of functions. The command line application of Document Converter will do you a great favor about this conversion. It allows you to convert any printable documents to various image formats and set different parameters for the image file.

In addition, this command line application can also be used by software developers to embed or redistribute in their developed applications for realizing the function of converting documents to images. Two other applications of Document Converter may also be useful to you. The GUI application supplies a friendly user interface and you can use it to make the conversion more visibly. The virtual printer application has the ability to save paper and ink by scaling page size or combining pages on one single sheet.

If you want to use the command line application, you can try the free trial version by downloading it at and installing it on your computer. The called program in the conversion from webpage to image is the executable file doc2pdf.exe in installation package of the command line application. When using it, please call it in MS-DOS interface.

In the conversion, you should open MS-DOS interface at first. The hot key “Window”+ “R” can be used to open “Run” dialog box and you need to input “cmd” in “Open” combo box of “Run” dialog box. Then please click “Enter” button. You can also click “Start”—“Run” to open “Run” dialog box.

Then please input the command line in popup MS-DOS interface. The command line is consisted of called program, parameter for setting color depth for the target file, source file and target file. If you cannot understand well, please see the following command line example:

doc2pdf –b 1 –i “” –o C:\cc.bmp

We can take BMP format as the example of output image file.

doc2pdf indicates the called program. The path of the executable file doc2pdf.exe must be inputted in the command line for calling it.

–b 1 is for setting color depth for the target file at 1-bit. You can also set the color depth as 8-bit or 24-bit by changing number as “8” and “24”.

–i “” stands for the link of the webpage document. When you start the conversion, the command line application will search for the document online automatically.

–o C:\cc.bmp stands for the name of the target file and you need to specify it yourself.

In the end of the conversion from webpage to image, please click “Enter” button to run the conversion. You can read more articles about the command line application in the blog: VeryPDF Knowledge Base.

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!