Class CmykToRgbCsConverter
java.lang.Object
com.itextpdf.pdfoptimizer.handlers.converters.AbstractCsConverter
com.itextpdf.pdfoptimizer.handlers.converters.CmykToRgbCsConverter
- All Implemented Interfaces:
-
ICsConverter
Class is used to convert color space of PDF objects from DeviceCmyk to DeviceRgb.
-
Constructor Summary
ConstructorDescriptionCmykToRgbCsConverter
(CsConverterProperties csConverterProperties) Creates aCmykToRgbCsConverter
. -
Method Summary
Modifier and TypeMethodDescriptionprotected ColorDecoder
createColorDecoder
(double[] decodeArray) CreatesColorDecoder
.GetsColorConverter
for appropriate convertion.protected Class extends com.itextpdf.kernel.pdf.colorspace.PdfColorSpace>
Gets original color space class.Methods inherited from class com.itextpdf.pdfoptimizer.handlers.converters.AbstractCsConverter
attemptToConvertTransparencyGroup, convertAnnotationIcArray, convertContentStream, convertImageCs, convertOperatorParameters, convertStoredResources, getConverterProperties
-
Constructor Details
-
CmykToRgbCsConverter
Creates aCmykToRgbCsConverter
.- Parameters:
-
csConverterProperties
-CsConverterProperties
to be used by thisCmykToRgbCsConverter
-
-
Method Details
-
getOriginalCsClass
Description copied from class:AbstractCsConverter
Gets original color space class. The result of this method is used to check that passed PDF object has a necessary color space.- Specified by:
-
getOriginalCsClass
in classAbstractCsConverter
- Returns:
- the original color space class
-
getColorConverter
Description copied from class:AbstractCsConverter
GetsColorConverter
for appropriate convertion. The result of this method is used for conversion and for filling necessary fields in converted PDF object.- Specified by:
-
getColorConverter
in classAbstractCsConverter
- Returns:
- the target color space name
-
createColorDecoder
CreatesColorDecoder
.- Overrides:
-
createColorDecoder
in classAbstractCsConverter
- Parameters:
-
decodeArray
- decode array in image stream - Returns:
-
ColorDecoder
-