com.aspose.words

Class TiffCompression

  • java.lang.Object
    • com.aspose.words.TiffCompression
public class TiffCompression 
extends java.lang.Object

Utility class containing constants. Specifies what type of compression to apply when saving page images into a TIFF file.

Example:

Converts a page of a Word document into a TIFF image and uses the CCITT compression.
Document doc = new Document(getMyDir() + "Rendering.docx");

ImageSaveOptions options = new ImageSaveOptions(SaveFormat.TIFF);
options.setTiffCompression(TiffCompression.CCITT_3);
options.setPageIndex(0);
options.setPageCount(1);

doc.save(getArtifactsDir() + "Rendering.SaveToTiffCompression.tiff", options);

Field Summary
static final intNONE = 0
Specifies no compression.
static final intRLE = 1
Specifies the RLE compression scheme.
static final intLZW = 2
Specifies the LZW compression scheme. In Java emulated by Deflate (Zip) compression.
static final intCCITT_3 = 3
Specifies the CCITT3 compression scheme.
static final intCCITT_4 = 4
Specifies the CCITT4 compression scheme.
 

    • Field Detail

      • NONE = 0

        public static final int NONE
        Specifies no compression.
      • RLE = 1

        public static final int RLE
        Specifies the RLE compression scheme.
      • LZW = 2

        public static final int LZW
        Specifies the LZW compression scheme. In Java emulated by Deflate (Zip) compression.
      • CCITT_3 = 3

        public static final int CCITT_3
        Specifies the CCITT3 compression scheme.
      • CCITT_4 = 4

        public static final int CCITT_4
        Specifies the CCITT4 compression scheme.