Convert documents of webpage to image and set image size by command line

If you want to set image size when you convert the document of webpage to image, you should customize the width and height for the image yourself. The command line application of Document Converter supports this kind of function. In this article, you will see the introduction of the command line application and how to make this conversion.

The command line application is the internal application of Document Converter which contains three internal applications. Document Converter is a kind of software product which is able to convert any printable documents to various image formats. Three internal applications in Document Converter are command line application, GUI application and virtual printer application.

The command line application will be a good helper to software developer because it can be used to develop software. The GUI application can convert documents to images in batch more easily and the virtual printer application and save paper and ink when you print documents.

Please download the command line application at for using it. Then you need to set up it on the disk of your computer. Please use the executable file doc2pdf.exe in installation folder as the called program in the conversion from webpage to image.

1. Please open MS-DOS prompt window for inputting the command line in it. There are two ways you can use to open it. The first one is to click “Start”—“Run” to open “Run” dialog box and input “cmd” in “Open” combo box. Then please click “OK” button. The second way is to use the hot key “Window”+ “R” to open “Run” dialog box. Of course you can also use other ways to open the window.

2. The command line to be inputted in MS-DOS prompt window is a combination of called program, parameter for setting image size, source file and target file. If you don’t understand it well, please see the following sample:

doc2pdf –w 800 –h 500 –i “” –o C:\test.tif

Please see the explanation for the sample below:

doc2pdf stands for the called program. Please input the path of it in the command line for accurately calling it.

–w 800 –h 500 are for setting image width and height as 800 and 500 pixels respectively.

–i “”  stands for the URL of the webpage document.

–o C:\test.tif  stands for the name of the target file.

All the files appear in the command line must be inputted as file paths.

3. Please click “Enter” button to run the conversion from webpage to image. When the target file come out in the specified location, the conversion is successful at last.

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!