Convert documents of TXT to PDF and set PDF author by command line

When you need to convert the document of txt to pdf, you may want to set pdf author for the output PDF document. If use the command line application of Document Converter, you will be able to convert any printable documents to many kinds of image formats. With the help of the command line application, you will also be able to set parameters for the target file.

The free download URL of the command line application is and you can download the free trial version of it for experiencing. If you want to use all the functions of the command line application, you should buy it at the following purchasing webpage:

As the internal application of Document Converter, the command line application can be used by software developers to develop or design the applications. There are also two other applications in Document Converter—GUI application and virtual printer application. When you use the GUI application, you can make batch conversion more easily because the user interface of the GUI application is friendly and easy to be understood by many people. If you want to save paper and ink when you print documents, please use the virtual printer application which is able to scale page size and combine several pages on one single sheet.

In the following contents, you will see how to convert the document of txt to pdf and set pdf author at the same time. Three steps are required.

The first one is to click “Start”—“Run” or use the hot key “Window”+ “R” to open “Run” dialog box in which you can input “cmd” in “Open” combo box and click “OK” button. Then you will see the popup MS-DOS interface in which you can input the command line.

The second one is to input the command line into MS-DOS interface for converting the document of txt to pdf and setting pdf author. The command line includes the called program which is the executable file in installation path of the command line application and named as doc2pdf.exe, parameter for setting pdf author, source file which is the input TXT document and the target file which is the output PDF document. Please see the following command line example:

doc2pdf –a “Nancy” –i C:\INPUT.txt –o D:\OUTPUT.pdf

In the command line,

doc2pdf stands for the called program and you need to use the path of the called program when you call it in the command line.

–a “Nancy” means to set pdf author as “Nancy”.

–i C:\INPUT.txt is the path of source file.

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

The last one is to click “Enter” button on the keyboard to run the conversion from the document of txt to pdf and you will be able to check the target file in specified location with some kind of PDF reader.

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!