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

The command line application of Document Converter supports to set page orientation for the output file when you convert the document of rtf to pdf. If you want to know how the command line application works, please read this article carefully and you will get acquaintance to the command line application to be used in this conversion.

The command line application is able to convert any printable documents to various image formats and if you are a software developer, you can embed it to your newly developed applications. Document Converter also has two other internal applications—GUI application and virtual printer application. If you want to convert documents to images in batch more easily, you can choose the GUI application for it has a friendly user interface. If you often print documents and you want to save paper and ink, you can use the virtual printer application.

If you are interested in the command line application, you can download a free trial version at After installing it on your computer, you can see an executable file named as doc2pdf.exe and it is the called program of the conversion from rtf to pdf. Before calling the executable file to convert rtf to pdf, you need to open MS-DOS interface.

You can use the hot key “Window”+ “R” to open “Run” dialog box in which you can input “cmd” or “CMD” in “Open” combo box of “Run” dialog box and then please click “OK” button. If you don’t like this way, you can also click “Start”—“Run” to open “Run” dialog box.

In the opened MS-DOS interface, you can input the command line for converting rtf to pdf and setting page orientation. The command line example is as follow:

doc2pdf –O 1 –i C:\A.rtf –o C:\pdf

From the command line example, we can see that there are four parts in it: called program, parameter for setting page orientation, source file and target file.

doc2pdf stands for the called program.

–O 1 sets the page orientation as portrait mode. If you want to set it as landscape mode, you should change the value as “2”.

–i C:\A.rtf  stands for the path of source file.

–o C:\pdf is the name of the target file.

You should run the conversion from rtf to pdf in the end by clicking “Enter” button on the keyboard. If you want to learn more information about Document Converter or the command line application of it, please enter its homepage via clicking here.

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!