|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.qoppa.pdf.TIFFOptions
public class TIFFOptions
Options used for finer control of the TIFF output format. This object is used when additional options, such as the byte order, need to be specified when saving PDF pages as TIFF images.
| Field Summary | |
|---|---|
static int |
DITHER_FLOYD_STEINBERG
Use Floyd-Steinberg dithering when converting to B&W |
static int |
DITHER_NONE
Do not dither output B&W images |
static String |
TIFF_CCITT_RLE
TIFF CCITT Modified Huffman RLE compression. |
static String |
TIFF_CCITT_T4
TIFF CCITT Group 3 fax encoding. |
static String |
TIFF_CCITT_T6
TIFF CCITT Group 4 fax encoding. |
static String |
TIFF_DEFLATE
TIFF Deflate lossless compression (Zip-in-TIFF). |
static String |
TIFF_FAX_GROUP3
TIFF CCITT Group 3 fax encoding. |
static String |
TIFF_FAX_GROUP4
TIFF CCITT Group 4 fax encoding. |
static String |
TIFF_JPEG
TIFF JPEG-in-TIFF compression. |
static String |
TIFF_LZW
TIFF LZW Compression |
static String |
TIFF_NO_COMPRESSION
TIFF with no compression. |
static String |
TIFF_PACKBITS
TIFF Byte-oriented run-length encoding "PackBits" compression. |
static String |
TIFF_ZLIB
TIFF ZLib Compression. |
| Constructor Summary | |
|---|---|
TIFFOptions(int dpi,
String compression)
TIFFOptions constructor that allows setting of DPI and compression format. |
|
| Method Summary | |
|---|---|
ByteOrder |
getByteOrder()
Gets the byte order to use when saving a TIFF file. |
String |
getCompression()
Return the current compression setting fo this TIFFOptions. |
int |
getDitherBW()
Gets the dithering option when converting images to black and white. |
int |
getDPI()
Return the DPI setting for this TIFFOptions. |
float |
getJPEGQuality()
Gets the current setting for the JPEG quality. |
int |
getRowsPerStrip()
Returns the number of rows per strip that will be used when saving a TIFF file. |
boolean |
isGrayscale()
Returns a flag indicating whether the document should be converted to grayscale before writing the output TIFF file. |
void |
setByteOrder(ByteOrder byteOrder)
Sets the byte order to use when saving a TIFF file. |
void |
setDitherBW(int ditherBW)
Sets the dithering option when converting images to black and white. |
void |
setGrayscale(boolean grayscale)
Sets the grayscale flag. |
void |
setJPEGQuality(float jpegQuality)
Sets the JPEG quality to be used when saving a JPEG compressed TIFF file. |
void |
setRowsPerStrip(int rowsPerStrip)
Sets the number of rows per strip to use when writing the TIFF file. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String TIFF_DEFLATE
public static final String TIFF_CCITT_RLE
public static final String TIFF_CCITT_T4
public static final String TIFF_FAX_GROUP3
public static final String TIFF_CCITT_T6
public static final String TIFF_FAX_GROUP4
public static final String TIFF_JPEG
public static final String TIFF_LZW
public static final String TIFF_PACKBITS
public static final String TIFF_ZLIB
public static final String TIFF_NO_COMPRESSION
public static final int DITHER_NONE
public static final int DITHER_FLOYD_STEINBERG
| Constructor Detail |
|---|
public TIFFOptions(int dpi,
String compression)
dpi - Dots per inch at which to render the image, 72 is the native PDF resolution and is equivalent to 100% scale..compression - The type of TIFF compression to use. This value needs to be one of
these predefined values:| Method Detail |
|---|
public int getDPI()
public String getCompression()
public ByteOrder getByteOrder()
public void setByteOrder(ByteOrder byteOrder)
byteOrder - The byte order to use, this can be either ByteOrder.BIG_ENDIAN or
BYTEOrder.LITTLE_ENDIAN.public void setRowsPerStrip(int rowsPerStrip)
rowsPerStrip - The number of rows per strip in the output file. Use -1 to output the
file as a single strip file.public int getRowsPerStrip()
public boolean isGrayscale()
public void setGrayscale(boolean grayscale)
grayscale - The new value of the grayscale flag.public int getDitherBW()
public void setDitherBW(int ditherBW)
ditherBW - The new value of the dithering optionpublic float getJPEGQuality()
public void setJPEGQuality(float jpegQuality)
jpegQuality - The JPEG quality setting, should be between 0 and 1.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||