Convert documents of TXT to image and set color depth by command line

By using the command line application of Document Converter, you can easily convert any printable documents to many kinds of image formats and set parameters for the target file. For example, you can convert the document of txt to image file and set color depth for output image file by using some kind of command.

When you want to use the command line application, you should download it at http://www.verypdf.com/artprint/docprint_pro_setup.exe for obtaining the free trial version and you need to set up it on your computer. There is an executable file—doc2pdf.exe in installation directory and it is the called program file in the conversion from txt to image.

Document Converter is a powerful document converter which is able to convert any printable documents to image formats and there are three internal applications in Document Converter. By using the GUI application, you can make batch conversion more easily because it is easy to control with a clear user interface. When you use the command line application, you can embed it to your own application if you want to develop some new software. The last application is the virtual printer application which is able to scale page size and combine several pages on one single sheet for saving paper and ink.

Three steps about converting txt to image and setting color depth are as follows:

The first step is to open MS-DOS prompt window. You should press “Window”+ “R” on the keyboard to open “Run” dialog box in which you can input “cmd”  in “Open” combo box and click “OK” button. You can also click “Start”—“Run” to open “Run” dialog box.

The second step is to input the command line for converting txt to image and setting color depth. The command line is made up of called program, parameter for setting color depth, source file and target file like the following one showing:

doc2pdf –b 1 –i C:\file-in.txt –o C:\file-out.jpg

Here we take “JPG” is the example of output image.

In the command line,

doc2pdf stands for the called program and you should use its path when you input the command line,

–b 1 specifies the color depth as 1-bit.

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

–o C:\file-out.jpg is the name of target file.

In the command line, you can also change the number of the color depth as 8 or 24 to set the color depth as 8-bit or 24-bit.

The last step is to run the conversion from txt to image by clicking “Enter” button.

There are also some other articles about the command line application on the blog: VeryPDF Knowledge Base and you can enter it to 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

This entry was posted in docPrint Pro and tagged , . Bookmark the permalink.

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!