Class PdfOptimizerExceptionMessageConstant
java.lang.Object
com.itextpdf.pdfoptimizer.exceptions.PdfOptimizerExceptionMessageConstant
Class that bundles all the exception message templates as constants.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
Message notifies that compression parameter is out of range [0., 1.].static final String
Message notifies that the passed data length does not match the expected data length.static final String
static final String
Message notifies that the passed output intent store incorrect Icc profile color space for current color space converter instance.static final String
static final String
Message notifies that scaling parameter is out of range [0., 1.].static final String
Message notifies that pixel representation doesn't match current color scheme presentation.static final String
Message notifies that /Mask array has unexpected length.static final String
Message notifies that /Mask array has unexpected length.static final String
Message notifies about attempt to create aMaskColors
with range of colors defined by two colors with different number of components.static final String
static final String
Message notifies about access to a pixel which is out of borders of the image.static final String
-
Method Summary
-
Field Details
-
INVALID_COMPRESSION_PARAMETER
Message notifies that compression parameter is out of range [0., 1.]. This is a parametrized constant and it should be processed withMessageFormatUtil.format(String, Object...)
method before using. List of params:- 0th is an actual invalid value of scaling.
- See Also:
-
INVALID_SCALING_PARAMETER
Message notifies that scaling parameter is out of range [0., 1.]. This is a parametrized constant and it should be processed withMessageFormatUtil.format(String, Object...)
method before using. List of params:- 0th is an actual invalid value of scaling.
- See Also:
-
PIXEL_OUT_OF_BORDERS
Message notifies about access to a pixel which is out of borders of the image. This is a parametrized constant and it should be processed withMessageFormatUtil.format(String, Object...)
method before using. List of params:- 0th is an x-coordinate of accessed pixel;
- 1st is a y-coordinate of accessed pixel;
- 2nd is a width of the image;
- 3rd is a height of the image.
- See Also:
-
LENGTH_OF_ARRAY_SHOULD_MATCH_NUMBER_OF_COMPONENTS
Message notifies that pixel representation doesn't match current color scheme presentation. Length of array should match number of component of colorspace. This is a parametrized constant and it should be processed withMessageFormatUtil.format(String, Object...)
method before using. List of params:- 0th is a length of array;
- 1st is a number of components of color space.
- See Also:
-
MASKED_COLORS_HAVE_DIFFERENT_LENGTHS
Message notifies about attempt to create aMaskColors
with range of colors defined by two colors with different number of components. This is a parametrized constant and it should be processed withMessageFormatUtil.format(String, Object...)
method before using. List of params:- 0th is a number of components of the first color which is considered as minimum masked color;
- 1th is a number of components of the second color which is considered as maximum masked color.
- See Also:
-
MASK_ARRAY_SHOULD_HAVE_EVEN_POSITIVE_LENGTHS
Message notifies that /Mask array has unexpected length. Its length should be an even positive number. This is a parametrized constant and it should be processed withMessageFormatUtil.format(String, Object...)
method before using. List of params:- 0th is an actual length of array.
- See Also:
-
MASK_ARRAY_DOES_NOT_CORRESPOND_WITH_CONVERTER
Message notifies that /Mask array has unexpected length. Its length should correspond with the color converter:2 * numberOfColorSpaceComponents
. This is a parametrized constant and it should be processed withMessageFormatUtil.format(String, Object...)
method before using. List of params:- 0th is an actual length of mask array;
- 1st is a length expected for the color cpace defined by the converter.
- See Also:
-
PROFILE_CANNOT_BE_NULL
- See Also:
-
INVALID_DATA_LENGTH
Message notifies that the passed data length does not match the expected data length. The expected length is calculated based on the passed parameters of height, width, bits per pixel and number of components. This is a parametrized constant and it should be processed withMessageFormatUtil.format(String, Object...)
method before using. List of params:- 0th is an expected data length
- 1st is an passed data length
- See Also:
-
CAN_NOT_CONVERT_SHADING_PATTERN_COLOR_SPACE
- See Also:
-
CAN_NOT_CONVERT_SEPARATION_COLOR_SPACE
- See Also:
-
CAN_NOT_CONVERT_DEVICEN_COLOR_SPACE
- See Also:
-
CAN_NOT_CONVERT_TRANSPARENCY_XOBJECT_GROUP_COLOR_SPACE
- See Also:
-
CAN_NOT_CONVERT_DEVICE_COLOR_SPACE_FOR_NON_BITMAP
- See Also:
-
CAN_NOT_CONVERT_INDEXED_COLOR_SPACE_FOR_NON_BITMAP
- See Also:
-
INVALID_OUTPUT_INTENT_SUBTYPE
- See Also:
-
INVALID_OUTPUT_INTENT_ICC_PROFILE_COLOR_SPACE
Message notifies that the passed output intent store incorrect Icc profile color space for current color space converter instance. List of params:- 0th is an expected Icc profile color space
- 1st is an passed output intent Icc profile color space
- See Also:
-
OUTPUT_INTENT_WAS_NOT_SET
- See Also:
-
INVALID_DECODE_ARRAY
- See Also:
-
INVALID_COLOR_TO_DECODE
- See Also:
-