Class CsConverterProperties
java.lang.Object
com.itextpdf.pdfoptimizer.handlers.converters.CsConverterProperties
Properties that will be used by the
ICsConverter.
-
Constructor Summary
ConstructorsConstructorDescriptionCsConverterProperties(ColorConversionMode conversionMode) Creates aCsConverterPropertiesto be used while converting color spaces. -
Method Summary
Modifier and TypeMethodDescriptionGets theColorConversionModewhich is respected while converting color spaces using thisCsConverterPropertiesinstance.com.itextpdf.kernel.pdf.PdfOutputIntentGets 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 aCsConverterPropertiesto be used while converting color spaces.- Parameters:
-
conversionMode- theColorConversionModewhich 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.NORMALmode is enabled and PDF/A document was passed for color conversion, otherwisePdfOptimizerExceptionexception 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.NORMALmode is enabled and PDF/A document was passed for color conversion, otherwisePdfOptimizerExceptionexception 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 theColorConversionModewhich is respected while converting color spaces using thisCsConverterPropertiesinstance.- Returns:
-
the used
ColorConversionMode
-