Convert documents of TXT to PDF and rotate page by command line

It is not a difficulty to convert the document of txt to pdf and rotate the page for the output pdf document if you choose the command line application of Document Converter as your tool. This command line application allows you to convert any printable documents to many kinds of image formats. It also supports to set parameters for output images.

Document Converter is a combination of three internal applications: command line application, GUI application and virtual printer application. You can embed or redistribute the command line application to your own developed applications when you develop software. You can use the GUI application to make batch conversion and use the virtual printer application to save paper and ink.

For using the command line application, you can download a free trial version to experience at Please set up it on your computer and you will use the executable file doc2pdf.exe in installation package. Then please see the specific conversion steps in following contents.

The first step in the conversion from txt to pdf is to open MS-DOS interface. You can use one of the following ways to open it. The first way is to click “Start”—“Run” to open “Run” dialog box and input “cmd” in “Open” combo box of “Run” dialog box. Then please click “OK” button. The second way is to use the combination “Window”+ “R” to open “Run” dialog box.

The second step is to input the command line in MS-DOS interface. Please see the following command line example:

doc2pdf –R 90 –i D:\input.txt –o D:\output.pdf

From the example, you can see there are four parts in it: called program, parameter for rotating pdf document, source file and target file.

doc2pdf stands for the called program and you should input its path when you write your command line.

–R 90 is to rotate the page of pdf document by 90 degree. The number can also be changes as 180 or 270.

–i D:\input.txt stands for the path of source file.

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

Please don’t forget the options “-i” and “-o” which stand for “input” and “output” before the paths of source file and target file.

The last step is to run the conversion from txt to pdf by clicking “Enter” button on the keyboard. If you want to read more articles about the command line application, please enter 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

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!