Class PdfImageXObjectPredicate
java.lang.Object
com.itextpdf.pdfoptimizer.handlers.util.PdfImageXObjectPredicate
- All Implemented Interfaces:
-
IPdfObjectPredicate
Checks if current
PdfObject
is a PdfImageXObject
.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
customCondition
(com.itextpdf.kernel.pdf.PdfObject object) When overridden allows to provide custom condition on images which match the predicate.final boolean
test
(com.itextpdf.kernel.pdf.PdfObject object) Checks that current object is aPdfStream
and has keyPdfName.Subtype
associated with valuePdfName.Image
.
-
Constructor Details
-
PdfImageXObjectPredicate
public PdfImageXObjectPredicate()
-
-
Method Details
-
test
public final boolean test(com.itextpdf.kernel.pdf.PdfObject object) Checks that current object is aPdfStream
and has keyPdfName.Subtype
associated with valuePdfName.Image
. If optional keyPdfName.Type
is presented it should be associated with the valuePdfName.XObject
.- Specified by:
-
test
in interfaceIPdfObjectPredicate
- Parameters:
-
object
- is an argument - Returns:
- is a result of evaluation
-
customCondition
public boolean customCondition(com.itextpdf.kernel.pdf.PdfObject object) When overridden allows to provide custom condition on images which match the predicate.- Parameters:
-
object
- is an image dictionary - Returns:
- true for every object
-