Convert documents of TXT to PDF and set page size by command line

You may need to set page size for the created PDF document when you convert the document of txt to pdf. If so, you can choose the command line application of Document Converter to help you.

This command line application is able to convert any printable documents to image formats and you can use it to set many kinds of parameters for the target file.

You should download the command line application at https://www.verypdf.com/artprint/docprint_pro_setup.exe and install it on your computer. The executable file doc2pdf.exe will be available instantly when the installation is over.

There are also two other applications in Document Converter—GUI application and virtual printer application. You can use the GUI application to make batch conversion and the virtual printer to save paper and ink.

The command line application is also a good helper to those who often develop software because it can be embedded or redistributed to the applications they develop.

For the command line application is a MS-DOS oriented application, you need to open the MS-DOS prompt window at first. You can click “Start”—“Run” or use the hot key “Window”+ “R” to open “Run” dialog box in which you should type “cmd” in “Open” combo box and click “OK” button.

Then please input the command line which contains called program, parameter for setting page size, source file and target file for converting txt to pdf. You can take the following command line as an example.

doc2pdf –f 8 –i C:\file-in.txt –o C:\file-out.pdf

Where

doc2pdf stands for the called program. Please remember to use the path of the called program in the command line.

–f 8 stands for setting the page as standard size.

–i C:\file-in.txt specifies the path of source file.

–o C:\file-out.pdf stands for the target file name.

By clicking “Enter” button on the keyboard, you are able to run the conversion from txt to pdf and set page size for output PDF document.

If you are interested in the command line application of Document Converter, you can buy it at https://www.verypdf.com/order_docprintpro.html.

There are also some other articles about the command line application on the blog: VeryPDF Knowledge Base and if you love, you can read them.

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!