public interface ICsConverter
Modifier and Type | Method and Description |
---|---|
void |
attemptToConvertTransparencyGroup(com.itextpdf.kernel.pdf.PdfObject groupEntryHolder, OptimizationSession session)
Attempt to converts transparency group dictionary which stored in passed groupEntryHolder PDF object, if this groupEntryHolder can store transparency group by PDF specification.
|
com.itextpdf.kernel.pdf.PdfArray |
convertAnnotationIcArray(com.itextpdf.kernel.pdf.PdfArray icArray)
Converts annotation interior color array.
|
com.itextpdf.kernel.pdf.PdfStream |
convertContentStream(com.itextpdf.kernel.pdf.PdfStream contentStream, com.itextpdf.kernel.pdf.PdfResources externalResources, OptimizationSession session)
Converts color space of the passed content stream.
|
com.itextpdf.kernel.pdf.xobject.PdfImageXObject |
convertImageCs(com.itextpdf.kernel.pdf.xobject.PdfImageXObject imageToConvert, OptimizationSession session)
Converts color space of passed image.
|
void |
convertStoredResources(OptimizationSession session)
Converts color space of the stored content stream resources.
|
CsConverterProperties |
getConverterProperties()
Gets current converter properties instance.
|
com.itextpdf.kernel.pdf.xobject.PdfImageXObject convertImageCs(com.itextpdf.kernel.pdf.xobject.PdfImageXObject imageToConvert, OptimizationSession session)
imageToConvert
- the image for which color space should be converting
session
- is an auxiliary object used to support share data between stages of optimization process
com.itextpdf.kernel.pdf.PdfStream convertContentStream(com.itextpdf.kernel.pdf.PdfStream contentStream, com.itextpdf.kernel.pdf.PdfResources externalResources, OptimizationSession session)
attemptToConvertTransparencyGroup(PdfObject, OptimizationSession)
method.
contentStream
- the PDF content stream instance for conversion
externalResources
- the external content stream resources. Used in the case when the page content stream is converted, and the resources are stored not in the content stream but in the page dictionary. In other case should be null
session
- is an auxiliary object used to support share data between stages of optimization process
void convertStoredResources(OptimizationSession session)
session
- is an auxiliary object used to support share data between stages of optimization process
com.itextpdf.kernel.pdf.PdfArray convertAnnotationIcArray(com.itextpdf.kernel.pdf.PdfArray icArray)
icArray
- the interior color array
void attemptToConvertTransparencyGroup(com.itextpdf.kernel.pdf.PdfObject groupEntryHolder, OptimizationSession session)
groupEntryHolder
- the PDF object which stored transparency group dictionary to convert
session
- is an auxiliary object used to support share data between stages of optimization process
CsConverterProperties getConverterProperties()
Copyright © 1998–2022 iText Group NV. All rights reserved.