Set page orientation and convert documents of HTML to PDF by command line

It sounds good that you just need only three steps to convert the document of html to pdf and set page orientation for the document. The application you should use in this conversion is the command line application of Document Converter which is a professional document converter designed for converting any printable documents to various image formats.

You can learn something about Document Converter at first. There are three applications in Document Converter and you can use any one of them if you need them. For example, if you are a software developer, the command line application to be used in this conversion may be a best choice. If you would love to do the batch conversion easily, you can choose the GUI application for it has an easy-to-use user interface. The virtual printer application can be used to scale page size and combine pages on one sheet also can act as a document converter.

If you want to use the command line application, please download the free trial version of it at You need to install it on your computer and please see the executable file doc2pdf.exe in installation package. It is the called program in the conversion from html to pdf.

The first step in the conversion is to open MS-DOS interface where you are able to input the command line. You can use the regular way—click “Start”—“Run” to open “Run” dialog box or use the quick way to press “Window”+ “R” to open “Run” dialog box. Then please input “cmd” in “Open” combo box and click “OK” button in “Run” dialog box.

The second step is to input the command line. You should know that the command line is made up of called program, parameter for setting page orientation, source file and target file in the conversion from html to pdf and set page orientation. Please see the following sample:

doc2pdf –O 1 –i “” –o D:\google.pdf

In the command line, doc2pdf stands for the called program and you should use its path in command line. –O 1 is for setting page orientation as portrait mode and you can also change “1” to “2” to set the orientation as landscape mode. –i following with “” stands for the link of source html document and –o following with D:\google.pdf stands for the name of target file.

Then please click “Enter” button to run the conversion from html to pdf and if you are need the command line application urgently, please buy it at

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!