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

With the help of the command line application of Document Converter which is a professional document converter, you can set page orientation as portrait or landscape mode when you convert the document of txt to pdf. The command line application allows you to convert any printable documents to various image formats and you can also use it to set parameters for the target file.

There are three internal applications in Document Converter. They are command line application, GUI application and virtual printer application. The command line application can be embedded or redistributed into the developed applications designed by software developers. The GUI application can be used to convert documents to images in batch in its friendly and clear interface. The virtual printer application can be used to scale page size or combine several pages on one single sheet for saving paper and ink.

If you need to use the command line application, please download the free trial version at https://www.verypdf.com/artprint/docprint_pro_setup.exe and install it on your computer. When you see the executable file doc2pdf.exe, you will be able to call it in MS-DOS interface. The file doc2pdf.exe is the called program in the conversion from txt to pdf. If you want to use all the functions of the command line application, please buy the product at https://www.verypdf.com/order_docprintpro.html.

The first step in the conversion is to open MS-DOS interface in which you can input the command line. You can click “Start”—“Run” to open “Run” dialog box in which you should type “cmd” in “Open” combo box and click “OK” button. To open “Run” dialog box, you can also use the hot key “Window”+ “R” combination on the keyboard.

The second step is to input the command line in MS-DOS interface. The command line is made up of called program, parameter for setting page orientation, source file and target file. If you don’t understand, please see the following example:

doc2pdf –O 1 –i C:\qq.txt –o D:\qq.pdf

In the command line, doc2pdf stands for the called program, –O 1 is for setting page orientation as portrait mode and if you wnat to set the landscape mode, please change the number as “2”.–i C:\qq.txt stands for the path of source file and –o D:\qq.pdf stands for the target file.

The last step is to click “Enter” button on the keyboard to run the conversion from txt to pdf. Then you will see your target file in specified location when the conversion comes to the end. If you want to know more information about Document Converter, please enter its homepage: https://www.verypdf.com/artprint/index.html.

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!