Modifier and Type | Method and Description |
---|---|
protected abstract void |
AbstractOptimizationHandler.optimizePdf(com.itextpdf.kernel.pdf.PdfDocument document, OptimizationSession session)
Performs an optimization of the document.
|
Modifier and Type | Method and Description |
---|---|
protected void |
FontDuplicationOptimizer.optimizePdf(com.itextpdf.kernel.pdf.PdfDocument document, OptimizationSession session)
The method searches for font dictionaries in PdfDocuments and compare them.
|
protected void |
ImageQualityOptimizer.optimizePdf(com.itextpdf.kernel.pdf.PdfDocument document, OptimizationSession session)
The method searches across all the document and for each found PdfImageXObject performs an optimization according to its type.
|
protected void |
CompressionOptimizer.optimizePdf(com.itextpdf.kernel.pdf.PdfDocument document, OptimizationSession session) |
protected void |
ColorSpaceConverter.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.
|
Modifier and Type | Method and Description |
---|---|
void |
ICsConverter.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.
|
void |
AbstractCsConverter.attemptToConvertTransparencyGroup(com.itextpdf.kernel.pdf.PdfObject groupEntryHolder, OptimizationSession session) |
com.itextpdf.kernel.pdf.PdfStream |
ICsConverter.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.PdfStream |
AbstractCsConverter.convertContentStream(com.itextpdf.kernel.pdf.PdfStream stream, com.itextpdf.kernel.pdf.PdfResources externalResources, OptimizationSession session)
Converts color space of the passed content stream.
|
com.itextpdf.kernel.pdf.xobject.PdfImageXObject |
ICsConverter.convertImageCs(com.itextpdf.kernel.pdf.xobject.PdfImageXObject imageToConvert, OptimizationSession session)
Converts color space of passed image.
|
com.itextpdf.kernel.pdf.xobject.PdfImageXObject |
AbstractCsConverter.convertImageCs(com.itextpdf.kernel.pdf.xobject.PdfImageXObject imageToConvert, OptimizationSession session)
Converts passed image in original color space to image in target color space.
|
void |
ICsConverter.convertStoredResources(OptimizationSession session)
Converts color space of the stored content stream resources.
|
void |
AbstractCsConverter.convertStoredResources(OptimizationSession session)
Converts color space of the stored content stream resources.
|
Constructor and Description |
---|
PdfCanvasCsConverter(com.itextpdf.kernel.pdf.PdfDocument document, AbstractCsConverter csConverter, OptimizationSession session)
Instantiates a new PdfCanvasCsConverter instance based on PDF document and color space converter.
|
Modifier and Type | Method and Description |
---|---|
com.itextpdf.kernel.pdf.xobject.PdfImageXObject |
BitmapScalingProcessor.processImage(com.itextpdf.kernel.pdf.xobject.PdfImageXObject objectToProcess, OptimizationSession session)
Scales a bitmap image presented as PdfImageXObject .
|
com.itextpdf.kernel.pdf.xobject.PdfImageXObject |
BitmapCompressor.processImage(com.itextpdf.kernel.pdf.xobject.PdfImageXObject objectToProcess, OptimizationSession session)
Optimizes a bitmap image: scales it, changes color scheme from CMYK to RGB if necessary and then compressed it as JPEG.
|
com.itextpdf.kernel.pdf.xobject.PdfImageXObject |
JpegCompressor.processImage(com.itextpdf.kernel.pdf.xobject.PdfImageXObject objectToProcess, OptimizationSession session)
Compresses a JPEG image presented as PdfImageXObject with the configured compression level.
|
com.itextpdf.kernel.pdf.xobject.PdfImageXObject |
BitmapDeindexer.processImage(com.itextpdf.kernel.pdf.xobject.PdfImageXObject objectToProcess, OptimizationSession session)
If bitmap image is in Indexed color space the Deindexer will create a representation of the same in based color space.
|
com.itextpdf.kernel.pdf.xobject.PdfImageXObject |
BitmapCmykToRgbConverter.processImage(com.itextpdf.kernel.pdf.xobject.PdfImageXObject objectToProcess, OptimizationSession session)
If provided image is a bitmap image with DeviceCMYK color scheme then converts it to the image with DeviceRGB color scheme.
|
com.itextpdf.kernel.pdf.xobject.PdfImageXObject |
CombinedImageProcessor.processImage(com.itextpdf.kernel.pdf.xobject.PdfImageXObject objectToProcess, OptimizationSession session)
Processes image by set processors one by one.
|
com.itextpdf.kernel.pdf.xobject.PdfImageXObject |
BitmapIndexer.processImage(com.itextpdf.kernel.pdf.xobject.PdfImageXObject objectToProcess, OptimizationSession session)
Calculates the number of colors used for the image and if it is not more than 256 builds an index for the image and change the color space to Indexed.
|
com.itextpdf.kernel.pdf.xobject.PdfImageXObject |
IImageProcessor.processImage(com.itextpdf.kernel.pdf.xobject.PdfImageXObject objectToProcess, OptimizationSession session)
Processes an image.
|
Copyright © 1998–2020 iText Group NV. All rights reserved.