Class RgbToCmykCsConverter
java.lang.Object
com.itextpdf.pdfoptimizer.handlers.converters.AbstractCsConverter
com.itextpdf.pdfoptimizer.handlers.converters.RgbToCmykCsConverter
- All Implemented Interfaces:
-
ICsConverter
Class is used to convert color space of PDF objects from DeviceRgb to DeviceCmyk.
-
Constructor Summary
ConstructorDescriptionRgbToCmykCsConverter
(CsConverterProperties csConverterProperties) Creates aRgbToCmykCsConverter
. -
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
-
RgbToCmykCsConverter
Creates aRgbToCmykCsConverter
.- Parameters:
-
csConverterProperties
-CsConverterProperties
to be used by thisRgbToCmykCsConverter
-
-
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
-