Convert text to tiff and compress tiff by CCITT method through command line

      In this article, we will talk about how to convert text to tiff and compress tiff file by CCITT compression method through command line. The software I used here is VeryDOC DOC to Any Converter, which is command line Windows application. By this software, you can convert all the Office, OpenOffice and others editable files to PDF, image and others. For more information, please check homepage of DOC to Any Converter. In the following part, I will put all the effort on showing how to convert text to TIFF and compress it.

First of all, download DOC to Any Converter

  • Please note all the VeryDOC software is clear and free downloading. So you can rest assured to try and text this software free hundreds of times.
  • When downloading finishes, there will be a zip file. All you need to do is that extract it to folders and then call the executable file in MS Dos Windows.

Secondly, convert text to tiff and set compression modes.

  • When you run the conversion, please obey rules and syntax of this software or else the conversion may fail.
  • Here is the usage:  DOC2Any [options] <in-file> [<out-file>]
  • When converting text to tiff and set compression modes, please refer to the following command line templates.
  • doc2any.exe -multipagetif  -useprinter "C:\in.txt" C:\out.tif
    By this command line,we can convert text file to multipage tiff file using virtual printer.
    doc2any.exe -multipagetif -bitcount 1 -xres 300 -yres 300 "C:\in.txt" C:\out.tif
    By this command line, we can specify output tiff bitcount  as 1, specify resolution in X and Y directions.
    doc2any.exe -useprinter -compression 88880 "C:\in.txt" C:\out.tif
    doc2any.exe -compression 88881 "C:\in.txt" C:\out.tif
    doc2any.exe -useprinter -compression 88883 "C:\in.txt" C:\out.tif
    doc2any.exe -multipagetif -useprinter -compression 88880 "C:\in.txt" C:\out.tif
    By those above command line templates, we can convert text to tiff and specify compression method. Now let us check the compression modes from the following parameters.

-xres <int>              : Set X resolution to image file
-yres <int>              : Set Y resolution to image file
-bitcount <int>          : Set color depth for image conversion
-compression <int>       : Set compression for TIFF image
   -compression 1     : NONE compression
   -compression 2     : CCITT modified Huffman RLE
   -compression 3     : CCITT Group 3 fax encoding (1d)
   -compression 4     : CCITT Group 4 fax encoding
   -compression 5     : LZW compression
   -compression 6     : OJPEG compression
   -compression 7     : JPEG DCT compression
   -compression 32773 : PACKBITS compression
   -compression 32809 : THUNDERSCAN compression
   -compression 88880 : 204x98  G4 ClassF TIFF
   -compression 88881 : 204x196 G4 ClassF TIFF
   -compression 88882 : 204x98  G3 ClassF TIFF
   -compression 88883 : 204x196 G3 ClassF TIFF
   -compression 88884 : CCITT Group 3 fax encoding (2d)

Up to now, maybe you can know how to convert text to tiff and set compress mode according to your needs. During the using, if you have any question, please contact us as soon as possible.

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

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!