public final class TiffSettings extends Object
This class represents settings for importing pdf to Tiff.
Modifier and Type | Class and Description |
---|---|
static class |
TiffSettings.IndexedConversionType
Class represented indexed conversion types
|
Constructor and Description |
---|
TiffSettings()
Initializes a new instance of the
TiffSettings class. |
TiffSettings(boolean skipBlankPages)
Initializes a new instance of the
TiffSettings class. |
TiffSettings(int compressionType)
Initializes a new instance of the
TiffSettings class. |
TiffSettings(int compressionType,
int colorDepth,
Margins margins)
Initializes a new instance of the
TiffSettings class. |
TiffSettings(int compressionType,
int colorDepth,
Margins margins,
boolean skipBlankPages)
Initializes a new instance of the
TiffSettings class. |
TiffSettings(int compressionType,
int colorDepth,
Margins margins,
boolean skipBlankPages,
int shapeType)
Initializes a new instance of the
TiffSettings class. |
TiffSettings(Margins margins)
Initializes a new instance of the
TiffSettings class. |
Modifier and Type | Method and Description |
---|---|
float |
getBrightness()
Get value boundary of the transformation of colors in white and black.
|
int |
getCompression()
Gets the type of the compression.
|
int |
getCoordinateType()
Gets the page coordinate type (Media/Crop boxes).
|
int |
getDepth()
Gets the color depth.
|
int |
getIndexedConversionType()
Gets the IndexedConversionType.
|
Margins |
getMargins()
Gets the margins.
|
int |
getShape()
Gets the type of the shape.
|
boolean |
getSkipBlankPages()
Gets a value indicating whether to skip blank pages.
|
boolean |
isUseAlternativeImageEngine()
Gets a flag determines whether alternative imaging engine is used or not.
|
void |
setBrightness(float value)
Set value boundary of the transformation of colors in white and black.
|
void |
setCompression(int value)
Sets the type of the compression.
|
void |
setCoordinateType(int value)
Sets the page coordinate type (Media/Crop boxes).
|
void |
setDepth(int value)
Gets the color depth.
|
void |
setIndexedConversionType(int value)
Sets the IndexedConversionType.
|
void |
setShape(int value)
Sets the type of the shape.
|
void |
setSkipBlankPages(boolean value)
Sets a value indicating whether to skip blank pages.
|
void |
setUseAlternativeImageEngine(boolean useAlternativeImageEngine)
Sets a flag determines whether alternative imaging engine is used or not.
|
public TiffSettings()
Initializes a new instance of the TiffSettings
class.
public TiffSettings(int compressionType)
Initializes a new instance of the TiffSettings
class.
compressionType
- Type of the compression.CompressionType
public TiffSettings(Margins margins)
Initializes a new instance of the TiffSettings
class.
margins
- The margins.public TiffSettings(int compressionType, int colorDepth, Margins margins)
Initializes a new instance of the TiffSettings
class.
compressionType
- Type of the compression.colorDepth
- The color depth.margins
- The margins.CompressionType
public TiffSettings(int compressionType, int colorDepth, Margins margins, boolean skipBlankPages)
Initializes a new instance of the TiffSettings
class.
compressionType
- Type of the compression.colorDepth
- The color depth.margins
- The margins.skipBlankPages
- if set to true
need to skip blank pagesCompressionType
,
ColorDepth
public TiffSettings(int compressionType, int colorDepth, Margins margins, boolean skipBlankPages, int shapeType)
Initializes a new instance of the TiffSettings
class.
compressionType
- Type of the compression.colorDepth
- The color depth.margins
- The margins.skipBlankPages
- if set to true
need to skip blank pages.shapeType
- Type of the shape.CompressionType
public TiffSettings(boolean skipBlankPages)
Initializes a new instance of the TiffSettings
class.
skipBlankPages
- if set to true
[skip blank pages].public int getIndexedConversionType()
Gets the IndexedConversionType. Default value is Simple.
TiffSettings.IndexedConversionType
public void setIndexedConversionType(int value)
Sets the IndexedConversionType.
value
- IndexedConversionType elementTiffSettings.IndexedConversionType
public Margins getMargins()
Gets the margins.
public boolean getSkipBlankPages()
Gets a value indicating whether to skip blank pages.
Value:true
if need to skip blank pages; otherwise, false
.
Default value is false
public void setSkipBlankPages(boolean value)
Sets a value indicating whether to skip blank pages.
Value:true
if need to skip blank pages; otherwise, false
.
Default value is false
value
- boolean valuepublic int getCompression()
Gets the type of the compression.
Value: The type of the compression.Default value is CompressionType.LZW
CompressionType
public void setCompression(int value)
Sets the type of the compression.
Value: The type of the compression.Default value is CompressionType.LZW
value
- CompressionType elementCompressionType
public int getDepth()
Gets the color depth.
Value: The color depth.Default value is ColorDepth.Default
ColorDepth
public void setDepth(int value)
Gets the color depth.
Value: The color depth.Default value is ColorDepth.Default
value
- ColorDepth elementColorDepth
public int getShape()
Gets the type of the shape.
Value: The type of the shape.Default value is ShapeType.None
ShapeType
public void setShape(int value)
Sets the type of the shape.
Value: The type of the shape.Default value is ShapeType.None
value
- ShapeType elementShapeType
public float getBrightness()
Get value boundary of the transformation of colors in white and black. This parameter can be applied with EncoderValue.CompressionCCITT4, EncoderValue.CompressionCCITT3, EncoderValue.CompressionRle or ColorDepth.Format1bpp == 1
public void setBrightness(float value)
Set value boundary of the transformation of colors in white and black. This parameter can be applied with EncoderValue.CompressionCCITT4, EncoderValue.CompressionCCITT3, EncoderValue.CompressionRle or ColorDepth.Format1bpp == 1
value
- : Value of brightness should be in the range from 0 to 1. By default value is equal to 0.33fpublic int getCoordinateType()
Gets the page coordinate type (Media/Crop boxes). CropBox value is used by default.
PageCoordinateType
public void setCoordinateType(int value)
Sets the page coordinate type (Media/Crop boxes). CropBox value is used by default.
value
- PageCoordinateTypePageCoordinateType
public boolean isUseAlternativeImageEngine()
Gets a flag determines whether alternative imaging engine is used or not. True value is used by default for Linux OS. For Windows OS default value is false.
public void setUseAlternativeImageEngine(boolean useAlternativeImageEngine)
Sets a flag determines whether alternative imaging engine is used or not.
useAlternativeImageEngine
- boolean valueCopyright © 2023 Aspose. All Rights Reserved.