pdfOptimizer 3.0.1 API
iText.Pdfoptimizer.Handlers.Converters.ICsConverter Interface Reference

Interface for color space converting of PDF objects. More...

Inheritance diagram for iText.Pdfoptimizer.Handlers.Converters.ICsConverter:
iText.Pdfoptimizer.Handlers.Converters.AbstractCsConverter iText.Pdfoptimizer.Handlers.Converters.CmykToRgbCsConverter iText.Pdfoptimizer.Handlers.Converters.RgbToCmykCsConverter

Public Member Functions

PdfImageXObject  ConvertImageCs (PdfImageXObject imageToConvert, OptimizationSession session)
  Converts color space of passed image. More...
 
PdfStream  ConvertContentStream (PdfStream contentStream, PdfResources externalResources, OptimizationSession session)
  Converts color space of the passed content stream. More...
 
void  ConvertStoredResources (OptimizationSession session)
  Converts color space of the stored content stream resources. More...
 
PdfArray  ConvertAnnotationIcArray (PdfArray icArray)
  Converts annotation interior color array. More...
 
void  AttemptToConvertTransparencyGroup (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. More...
 
CsConverterProperties  GetConverterProperties ()
  Gets current converter properties instance. More...
 

Detailed Description

Interface for color space converting of PDF objects.

Member Function Documentation

◆ AttemptToConvertTransparencyGroup()

void iText.Pdfoptimizer.Handlers.Converters.ICsConverter.AttemptToConvertTransparencyGroup ( 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.

Parameters
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

Implemented in iText.Pdfoptimizer.Handlers.Converters.AbstractCsConverter.

◆ ConvertAnnotationIcArray()

PdfArray iText.Pdfoptimizer.Handlers.Converters.ICsConverter.ConvertAnnotationIcArray ( PdfArray  icArray )

Converts annotation interior color array.

Parameters
icArray the interior color array
Returns
the converted interior color array if converting can be performed and the same instance otherwise

Implemented in iText.Pdfoptimizer.Handlers.Converters.AbstractCsConverter.

◆ ConvertContentStream()

PdfStream iText.Pdfoptimizer.Handlers.Converters.ICsConverter.ConvertContentStream ( PdfStream  contentStream,
PdfResources  externalResources,
OptimizationSession  session 
)

Converts color space of the passed content stream.

Converts color space of the passed content stream. Note that this method does not process content stream resources and passed external resources. This method doesn't convert transparency group entry, for it use AttemptToConvertTransparencyGroup(iText.Kernel.Pdf.PdfObject, iText.Pdfoptimizer.OptimizationSession) method.

Parameters
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
Returns
the content stream with converted color space if converting can be performed and the same instance otherwise

Implemented in iText.Pdfoptimizer.Handlers.Converters.AbstractCsConverter.

◆ ConvertImageCs()

PdfImageXObject iText.Pdfoptimizer.Handlers.Converters.ICsConverter.ConvertImageCs ( PdfImageXObject  imageToConvert,
OptimizationSession  session 
)

Converts color space of passed image.

Parameters
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
Returns
the image with converted color space if converting can be performed and the same instance otherwise

Implemented in iText.Pdfoptimizer.Handlers.Converters.AbstractCsConverter.

◆ ConvertStoredResources()

void iText.Pdfoptimizer.Handlers.Converters.ICsConverter.ConvertStoredResources ( OptimizationSession  session )

Converts color space of the stored content stream resources.

Parameters
session is an auxiliary object used to support share data between stages of optimization process

Implemented in iText.Pdfoptimizer.Handlers.Converters.AbstractCsConverter.

◆ GetConverterProperties()

CsConverterProperties iText.Pdfoptimizer.Handlers.Converters.ICsConverter.GetConverterProperties ( )

Gets current converter properties instance.

Returns
the converter properties instance

Implemented in iText.Pdfoptimizer.Handlers.Converters.AbstractCsConverter.