In the market, there are various tools which can be used to convert HTML to tiff allowing to compress it by CCITT compression method. But maybe converting HTML to tiff is just one of your desired functions, when you need to do conversion together with printing, this article will be helpful for you.VeryDOC HTMLPrint to Any Converter is a typically professional tool which can be used to batch print html or Web URLs to Windows Printer and do the conversion together. In the following part, I will take converting HTML to tiff for example to show you how to use it.
Step 1. Download HTMLPrint to Any Converter
Once downloading finishes, you will find it is a zip file. Please extract it to some folder then you can find the executable file.
In the extracted folder, there is a Dll, three bat files, readme.txt,ps2pdf and html2any. When you do the conversion, please call html2any. If you need to check the conversion effect, simply run the bat file by double clicking.
Step 2. Convert HTML to tiff and Compress it.
Usage:html2any.exe [options] <HTML/MHTML file or URL>
Examples:
- When converting single HTML to tiff, please refer to the following template.
html2any.exe -printtoimage C:\out.tif http://www.verypdf.com
-printtoimage <string> : print HTML document to image files - When you need to compress it, please refer to the following command line. Parameter –compress 2 is an order to compress tiff file by CCITT. And this software also provides other compression methods, like G3 ClassF and others. Please check details in the following parameter list.
html2any.exe -printtoimage C:\out.png -compress 2 http://www.verypdf.com - When you need to convert HTML to multipage tiff, please use the following command line.
html2any.exe -printtoimage C:\out.tif -multipage http://www.verypdf.com
-multipage : Create multipage TIFF file - If you need to make the HTML to grey tiff for printing, please use parameter –gray.
-gray : Create 8bit image file at grayscale color space
compress <int> : Set compression to TIFF image
-compress 1 : NONE compression
-compress 2 : CCITT modified Huffman RLE
-compress 3 : CCITT Group 3 fax encoding (1d)
-compress 4 : CCITT Group 4 fax encoding
-compress 5 : LZW compression
-compress 6 : OJPEG compression
-compress 7 : JPEG DCT compression
-compress 32773 : PACKBITS compression
-compress 32809 : THUNDERSCAN compression
-compress 88880 : 204x98 G4 ClassF TIFF
-compress 88881 : 204x196 G4 ClassF TIFF
-compress 88882 : 204x98 G3 ClassF TIFF
-compress 88883 : 204x196 G3 ClassF TIFF
By those examples, I guess you can master one way for converting HTML to tiff. During the using, if you have any question, please contact us as soon as possible.