Convert documents of TXT to grayscale image by command line

By using the command line application, you will realize many kinds of functions and you can also set many types of parameters for the target file. The command line application of Document Converter is powerful enough to convert any printable documents to image formats and you can use the command line application to set image size, resolution, color depth, etc. parameters for the target file. Of course, it also allows you to convert the document of txt to grayscale image just by using one parameter.

In this article, you will see the specific steps about convert txt to grayscale image and you will also get some acquaintance to the command line application of Document Converter. This command line application can be used by software developers to embed or redistribute in their developed applications. The command line application is an internal application of Document Converter which also has two other applications—GUI application and virtual printer application.

The free download link of the command line application is http://www.verypdf.com/artprint/docprint_pro_setup.exe and after downloading it to your computer, please set up it on your computer. The called program in the conversion is the executable file doc2pdf.exe in installation package, you need to call it in the MS-DOS prompt window when you want to use it. You can also buy the application at http://www.verypdf.com/order_docprintpro.html for using all the functions of it.

In the conversion from txt to grayscale image, the first step is to open MS-DOS prompt window for inputting the command line. If you love to use the hot key usually, you can press “Window”+ “R” combination on the keyboard to open “Run” dialog box in which you should type “cmd” in “Open” combo box and click “OK” button. The other way to open “Run” dialog box is clicking “Start”—“Run”.

Then you will see MS-DOS prompt window pop up on the screen, in which you need to input the command line for converting the document of txt to grayscale image. The command line includes four parts: called program, parameter for setting grayscale image, source file and target file just like the following one:

doc2pdf –y –i C:\YY.txt –o C:\YY.bmp

You can use different kind of image format as the output file, such as BMP, JPG, PNG and so on.

In the command line,

doc2pdf stands for the called program doc2pdf.exe.

–y stands for the parameter for setting grayscale image.

–i C:\YY.txt is the path of source file and please don’t lose the option “-i”.

–o C:\YY.bmp is the name of target file and the option “-o” can not be ignored, either.

When everything is done, please click “Enter” button to run the conversion from the document of txt to grayscale image and you just need to wait for several seconds. The last thing you may need to do is to check the target file in specified location.

VN:F [1.9.20_1166]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.20_1166]
Rating: 0 (from 0 votes)

Random Posts

This entry was posted in docPrint Pro. 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!