If you would like to use a convenient way to convert txt to png and set png resolution one time, you can choose the command line to help you process this task. And here is a tool working based on the command line, which is a multi-functional tool, whose name is DOC to Any Converter Command Line. DOC to Any Converter Command Line has been designed to convert Office files to any kinds of files singly or in batches, and even help you set the options of the objective files.
The following paragraphs are the details about this process with DOC to Any Converter Command Line:
First, as you can understand, the first precondition to use DOC to Any Converter Command Line is to have this dreaming tool installed in your computer. Thus, please download and install DOC to Any Converter Command Line in your computer at the beginning.
Here is the link of DOC to Any Converter Command Line, you need to click it to download DOC to Any Converter Command Line:
https://www.verydoc.com/doc2any_cmd.zip
Then, please unzip the relative folder to your computer so that DOC to Any Converter Command Line can be used directly.
Second, please launch the command prompt window to start DOC to Any Converter Command Line
To start the command prompt window, you need to know the reason why. For Windows systems, the running environment of the command line is the command prompt window, and DOC to Any Converter Command Line has been designed to work based on the command line, it is essential to start the command prompt window in your computer. Here is the method to open it below:
click “start” > select “Run” on start menu > type “cmd.exe” and click “ok” in the dialog box “Run”, then the command prompt window can be opened quickly.
To launch DOC to Any Converter Command Line after the running of the command prompt window, you need to drag and drop the installer “doc2any.exe” into the command prompt window, or type its path into the command prompt window directly.
Third, please type the command line to process the task from txt to png
To type the command line in the command prompt window, firstly, you need to know the process flow in the command prompt window, after you launch DOC to Any Converter Command Line:
edit the properties of the png files----> add the txt file for this process----> save and name the png files---->start to process this task
Thus, after you run DOC to Any Converter Command Line, you need to set png resolution by the way of typing the parameters “-xres 300 –yres 300”, which help you edit the horizontal resolution as 300 and the vertical resolution as 300.Moreover, for raster images, you can largen the value of resolution to get bigger size and dimension of png files, and vice versa.
Then, you can add the txt file by the way of typing its path, and save png files by the way of inputting the objective path, which also help you name png files in the command prompt window. At last, you can click “enter” to start to process the task to get bigger or smaller png resolution. Here is the command line about this process, I hope it can help you sometime:
f:\doc2any_cmd\doc2any.exe –xres 288 –yres 288 d:\input2\in2.txt d:\output2\out2.png<enter>
By now, it is nearly the end of this article, and if you want to know more about DOC to Any Converter Command Line, please click this link to go to the webpage of DOC to Any Converter Command Line: https://www.verydoc.com/doc-to-any-options.html. And if you have any questions about this process, which is about the conversion from txt to png with specific png resolution, please drop your comment here, we will help you asap! Thank you for your support!