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

The description of PDF document is an important information for describing the PDF document such as PDF subject, title, keywords, author and so on. When you convert the document of txt to pdf, you are allowed to set pdf subject in the conversion process by using the command line application of Document Converter.

Mentioned about Document Converter, you will find it is a powerful application which is able to convert any printable documents to image formats with any one of its internal applications: command line application, GUI application and virtual printer application.

Besides the function of a document converter, the command line application is also a good helper for software developers when they want to develop software basing on Document Converter. The GUI application is good at batch conversion for you can drag and drop the files you want to convert into its user interface and convert then in batch. The virtual printer application is a good tool to save paper and ink for it is able to scale page size and combine several pages on one single sheet.

For using the command line application, you should download a free trial version at https://www.verypdf.com/artprint/docprint_pro_setup.exe and install it on your computer. Then you will see the executable file doc2pdf.exe which is the called program in the conversion from txt to pdf in installation folder.

Then please see the following steps about converting the document of txt to pdf and setting pdf subject. The first thing you should do is to open MS-DOS prompt window. You can click “Start”—“Run” to open “Run” dialog box in which you should input “cmd” in “Open” combo box and click “OK” button. The hot key “Window”+ “R” is also available to open “Run” dialog box.

The command line to be inputted in MS-DOS prompt window is an important part you should do in the conversion from txt to pdf. In the command line there are three parts: called program, parameter for setting pdf subject, source file and target file. You can see the following command line sample:

doc2pdf –j “PDF document” –i C:\ww. txt –o C:\ww.pdf

We can analyze the command line sample together. doc2pdf stands for the called program. –j “PDF document” is for specifying the subject of the target file as “PDF document”. C:\ww. txt following behind –i is the path of source file and C:\ww.pdf following behind –o is the name of target file.

For running the conversion from txt to pdf and setting pdf subject, please click “Enter” button on the keyboard and you need to check the target file in the location you have set in the command line 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!