If you want to set batch convert HTML to PNG, you are strongly introduced to use VeryPDF HTML Converter Command Line, which is one of the best products of VeryPDF. VeryPDF HTML Converter Command Line is a software application which allows you convert HTML to PNM and multiple image files like PNG, TIFF, JP2, and JPG via . Furthermore, it supports and setting.when you
The format PNM, as an abstraction of the PBM, PGM, and PPM formats, is an acronym derived from Portable Any Map. When you consider it as the combination of PBM, PGM, and PPM, it may make more sense. PBM is for bitmaps (black and white, no grays), PGM is for gray scale, and PPM is for "pixmaps" which represent full RGB color.
This article will focus on how to setwhen batch convert HTML to PNM. The command we are going to use is -bitcount <int>.This command can be used to set bit depth and it permits three parameter values: 1, 8, and 24. The following will take three steps to show you how to set bit depth and batch convert HTML to PNM via one :
1. Open the command prompt window
To open the command line is very and simple. Only four steps are required.
Click “Start”; > Click “Run” on the menu that appears on the computer screen; > Enter “cmd” in the “Run” dialog box, > Click “OK”.
2. Enter a command line
Generally speaking, the command needs to consist of four factors:
htmltools -bitcount <int> <HTML file> <PNM file>
- Factor 1: htmltools ---- the executable file
- Factor 2: -bitcount <int> ---- the command which can be used to set color depth. The angle brackets are used to mark the essential content. int means integer. As for this command, three parameter values are permitted: 1 refers to black and white; 8 refers to black, white, and grey; and 24 refers to 224 colors that are allowed in the image.
- Factor 3: <HTML file> ---- the input HTML file(s)
- Factor 4: <PNM file> ---- the output PNM file(s)
When you enter any command line in the command prompt window, please remember to enter the whole directories of the files, rather than only the names of the files. This is because the directories can lead the computer find where the files are stored. Hence, in order to let the computer find where the executable file, the input file and the output file are placed, the command line you are going to enter should conclude the directories. Taking the following command line as an example,
D:\htmltools\htmltools.exe -bitcount 8 D:\in\*.html D:\out\*.pnm
- D:\htmltools\htmltools.exe is the directory of the executable file htmltools.exe. In the example, the directory can lead the computer to find the executable file in the folder htmltools on disc D. The example directory can be replaced by the actual directory of the executable file in your computer.
- -bitcount 8 is the command for bit depth setting. It specifies 8-bit as the bit depth for the output file. The number can be replaced by 24 or 1.
- D:\in\*.html is the directory of the input files. This directory indicates that the input files are in HTML format, and they are in the folder in on disk D.
- D:\out\*.pnm is the directory of output files. The file extension indicates that all the original files should be in PNM format. In addition, they must be stored in the folder out on disk D. Both the directories of the input and output files can be substituted.
3. Press “Enter”
Click “Enter” on the keyboard, you can order the computer to batch convert HTML to PNM files in the color depth of 8-bit right away. In a few seconds, you can view the effect of the output PNM files in the selected output folder. If you are interested in other related articles, you can also read the related articles at the knowledge base of VeryPDF