Class CsConverterProperties
java.lang.Object
com.itextpdf.pdfoptimizer.handlers.converters.CsConverterProperties
Properties that will be used by the
ICsConverter
.
-
Constructor Summary
ConstructorDescriptionCsConverterProperties
(ColorConversionMode conversionMode) Creates aCsConverterProperties
to be used while converting color spaces. -
Method Summary
Modifier and TypeMethodDescriptionGets theColorConversionMode
which is respected while converting color spaces using thisCsConverterProperties
instance.com.itextpdf.kernel.pdf.PdfOutputIntent
Gets output intent instance which will be used for replacing original PDF output intent when converting the color space.setOutputIntent
(com.itextpdf.kernel.pdf.PdfOutputIntent outputIntent) Sets output intent instance which will be used for replacing original PDF output intent when converting the color space.
-
Constructor Details
-
CsConverterProperties
Creates aCsConverterProperties
to be used while converting color spaces.- Parameters:
-
conversionMode
- theColorConversionMode
which will be respected while using thisCsConverterProperties
-
-
Method Details
-
setOutputIntent
Sets output intent instance which will be used for replacing original PDF output intent when converting the color space. Important note, setting output intent by calling this method is required whenColorConversionMode.NORMAL
mode is enabled and PDF\A document was passed for color conversion, otherwisePdfOptimizerException
exception will be thrown. Also, if document didn't have output intent originally, then output intent will not be put to such document.- Parameters:
-
outputIntent
- the output intent instance to set - Returns:
- this instance
-
getOutputIntent
public com.itextpdf.kernel.pdf.PdfOutputIntent getOutputIntent()Gets output intent instance which will be used for replacing original PDF output intent when converting the color space. Important note, setting output intent by callingsetOutputIntent(PdfOutputIntent)
method is required whenColorConversionMode.NORMAL
mode is enabled and PDF\A document was passed for color conversion, otherwisePdfOptimizerException
exception will be thrown. Also, if document didn't have output intent originally, then output intent will not be put to such document.- Returns:
- the output intent instance
-
getConversionMode
Gets theColorConversionMode
which is respected while converting color spaces using thisCsConverterProperties
instance.- Returns:
-
the used
ColorConversionMode
-