Uses of Class
com.itextpdf.pdfoptimizer.OptimizationSession
Package
Description
-
Uses of OptimizationSession in com.itextpdf.pdfoptimizer
Modifier and TypeMethodDescriptionprotected abstract void
AbstractOptimizationHandler.optimizePdf
(com.itextpdf.kernel.pdf.PdfDocument document, OptimizationSession session) Performs an optimization of the document. -
Uses of OptimizationSession in com.itextpdf.pdfoptimizer.handlers
Modifier and TypeMethodDescriptionprotected void
ColorSpaceConverter.optimizePdf
(com.itextpdf.kernel.pdf.PdfDocument document, OptimizationSession session) The method searches across all the document and for each foundPdfImageXObject
performs an color converting according with defined color space converter.protected void
CompressionOptimizer.optimizePdf
(com.itextpdf.kernel.pdf.PdfDocument document, OptimizationSession session) 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
FontSubsettingOptimizer.optimizePdf
(com.itextpdf.kernel.pdf.PdfDocument document, OptimizationSession session) Performs an optimization of the document.protected void
ImageQualityOptimizer.optimizePdf
(com.itextpdf.kernel.pdf.PdfDocument document, OptimizationSession session) The method searches across all the document and for each foundPdfImageXObject
performs an optimization according to its type. -
Uses of OptimizationSession in com.itextpdf.pdfoptimizer.handlers.converters
Modifier and TypeMethodDescriptionvoid
AbstractCsConverter.attemptToConvertTransparencyGroup
(com.itextpdf.kernel.pdf.PdfObject groupEntryHolder, OptimizationSession session) 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.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.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.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.com.itextpdf.kernel.pdf.xobject.PdfImageXObject
ICsConverter.convertImageCs
(com.itextpdf.kernel.pdf.xobject.PdfImageXObject imageToConvert, OptimizationSession session) Converts color space of passed image.void
AbstractCsConverter.convertStoredResources
(OptimizationSession session) Converts color space of the stored content stream resources.void
ICsConverter.convertStoredResources
(OptimizationSession session) Converts color space of the stored content stream resources.ModifierConstructorDescriptionPdfCanvasCsConverter
(com.itextpdf.kernel.pdf.PdfDocument document, AbstractCsConverter csConverter, OptimizationSession session) Instantiates a newPdfCanvasCsConverter
instance based on PDF document and color space converter. -
Uses of OptimizationSession in com.itextpdf.pdfoptimizer.handlers.fontsubsetting
Modifier and TypeMethodDescriptionUsedGlyphsFinder.findUsedGlyphsInFonts
(com.itextpdf.kernel.pdf.PdfDocument document, OptimizationSession session) Process content streams to find glyphs used in document. -
Uses of OptimizationSession in com.itextpdf.pdfoptimizer.handlers.imagequality.processors
Modifier and TypeMethodDescriptioncom.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
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
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
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
BitmapScalingProcessor.processImage
(com.itextpdf.kernel.pdf.xobject.PdfImageXObject objectToProcess, OptimizationSession session) Scales a bitmap image presented asPdfImageXObject
.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
IImageProcessor.processImage
(com.itextpdf.kernel.pdf.xobject.PdfImageXObject objectToProcess, OptimizationSession session) Processes an image.com.itextpdf.kernel.pdf.xobject.PdfImageXObject
JpegCompressor.processImage
(com.itextpdf.kernel.pdf.xobject.PdfImageXObject objectToProcess, OptimizationSession session) Compresses a JPEG image presented asPdfImageXObject
with the configured compression level.