public class ColorSpaceConverter extends AbstractOptimizationHandler
PdfDocument
.
Constructor and Description |
---|
ColorSpaceConverter() |
Modifier and Type | Method and Description |
---|---|
ICsConverter |
getCsConverter()
Gets a current color space converter instance.
|
protected void |
optimizePdf(com.itextpdf.kernel.pdf.PdfDocument document, OptimizationSession session)
The method searches across all the document and for each found PdfImageXObject performs an color converting according with defined color space converter.
|
ColorSpaceConverter |
setCsConverter(ICsConverter csConverter)
Sets a color space converter instance.
|
public ICsConverter getCsConverter()
ICsConverter
instance
public ColorSpaceConverter setCsConverter(ICsConverter csConverter)
csConverter
- is a converter to set
protected void optimizePdf(com.itextpdf.kernel.pdf.PdfDocument document, OptimizationSession session)
PdfImageXObject
performs an color converting according with defined color space converter. And performs an color converting for content streams and their resources. And removes PDF\A id schemas from PDF XMP metadata.
optimizePdf
in class AbstractOptimizationHandler
document
- is the PDF document to optimize. Invocation of the method can change the state of the object
session
- is an auxiliary object used to support share data between stages of optimization process
Copyright © 1998–2020 iText Group NV. All rights reserved.