|
pdfOptimizer 4.1.2 API
|
Looks for image streams and performs theirs optimization. More...
Public Member Functions |
|
| ImageQualityOptimizer () | |
| Creates an empty image quality optimizer. More... |
|
| ImageQualityOptimizer (IDictionary< ImageType, IImageProcessor > processors) | |
| Creates a new image quality optimizer with custom configuration of image processors. More... |
|
| virtual iText.Pdfoptimizer.Handlers.ImageQualityOptimizer | SetJpegProcessor (IImageProcessor processor) |
| Sets a processor for iText.IO.Image.ImageType.JPEG images. More... |
|
| virtual iText.Pdfoptimizer.Handlers.ImageQualityOptimizer | SetJpeg2000Processor (IImageProcessor processor) |
| Sets a processor for iText.IO.Image.ImageType.JPEG2000 images. More... |
|
| virtual iText.Pdfoptimizer.Handlers.ImageQualityOptimizer | SetJBig2Processor (IImageProcessor processor) |
| Sets a processor for iText.IO.Image.ImageType.JBIG2 images. More... |
|
| virtual iText.Pdfoptimizer.Handlers.ImageQualityOptimizer | SetTiffProcessor (IImageProcessor processor) |
| Sets a processor for iText.IO.Image.ImageType.TIFF images. More... |
|
| virtual iText.Pdfoptimizer.Handlers.ImageQualityOptimizer | SetPngProcessor (IImageProcessor processor) |
| Sets a processor for iText.IO.Image.ImageType.PNG images. More... |
|
| virtual iText.Pdfoptimizer.Handlers.ImageQualityOptimizer | SetPredicate (PdfImageXObjectPredicate predicate) |
| Sets a search predicate. More... |
|
| virtual PdfImageXObjectPredicate | GetPredicate () |
| Gets current search predicate. More... |
|
| virtual IDictionary< ImageType, IImageProcessor > | GetImageProcessors () |
| Gets a copy of current configuration of the image processor. More... |
|
Package Functions |
|
| override void | OptimizePdf (PdfDocument document, OptimizationSession session) |
| The method searches across all the document and for each found iText.Kernel.Pdf.Xobject.PdfImageXObject performs an optimization according to its type. More... |
|
Looks for image streams and performs theirs optimization.
|
inline |
Creates an empty image quality optimizer.
|
inline |
Creates a new image quality optimizer with custom configuration of image processors.
Creates a new image quality optimizer with custom configuration of image processors. Note that type of the image is identifying based on iText.Kernel.Pdf.Xobject.PdfImageXObject.IdentifyImageType() call.
| processors | is a map where image types are associated with processors for them |
|
inlinevirtual |
Gets a copy of current configuration of the image processor.
|
inlinevirtual |
Gets current search predicate.
Gets current search predicate. If it was not set return default implementation.
|
inlinepackagevirtual |
The method searches across all the document and for each found iText.Kernel.Pdf.Xobject.PdfImageXObject performs an optimization according to its type.
| document |
Performs an optimization of the document.
| session |
Performs an optimization of the document.
Implements iText.Pdfoptimizer.AbstractOptimizationHandler.
|
inlinevirtual |
Sets a processor for iText.IO.Image.ImageType.JBIG2 images.
Sets a processor for iText.IO.Image.ImageType.JBIG2 images. Note that type of the image is identifying based on iText.Kernel.Pdf.Xobject.PdfImageXObject.IdentifyImageType() call.
| processor | is an image processor to set |
|
inlinevirtual |
Sets a processor for iText.IO.Image.ImageType.JPEG2000 images.
Sets a processor for iText.IO.Image.ImageType.JPEG2000 images. Note that type of the image is identifying based on iText.Kernel.Pdf.Xobject.PdfImageXObject.IdentifyImageType() call.
| processor | is an image processor to set |
|
inlinevirtual |
Sets a processor for iText.IO.Image.ImageType.JPEG images.
Sets a processor for iText.IO.Image.ImageType.JPEG images. Note that type of the image is identifying based on iText.Kernel.Pdf.Xobject.PdfImageXObject.IdentifyImageType() call.
| processor | is an image processor to set |
|
inlinevirtual |
Sets a processor for iText.IO.Image.ImageType.PNG images.
Sets a processor for iText.IO.Image.ImageType.PNG images. Note that type of the image is identifying based on iText.Kernel.Pdf.Xobject.PdfImageXObject.IdentifyImageType() call.
| processor | is an image processor to set |
|
inlinevirtual |
Sets a search predicate.
Sets a search predicate. Allows to provide custom implementation of iText.Pdfoptimizer.Handlers.Util.PdfImageXObjectPredicate with overridden method iText.Pdfoptimizer.Handlers.Util.PdfImageXObjectPredicate.CustomCondition(iText.Kernel.Pdf.PdfObject) to skip some types of images during optimization process.
| predicate | is a predicate to set |
|
inlinevirtual |
Sets a processor for iText.IO.Image.ImageType.TIFF images.
Sets a processor for iText.IO.Image.ImageType.TIFF images. Note that type of the image is identifying based on iText.Kernel.Pdf.Xobject.PdfImageXObject.IdentifyImageType() call.
| processor | is an image processor to set |