Class PdfImageXObjectPredicate
java.lang.Object
com.itextpdf.pdfoptimizer.handlers.util.PdfImageXObjectPredicate
- All Implemented Interfaces:
-
IPdfObjectPredicate
Checks if current
PdfObject is a PdfImageXObject.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancustomCondition(com.itextpdf.kernel.pdf.PdfObject object) When overridden allows to provide custom condition on images which match the predicate.final booleantest(com.itextpdf.kernel.pdf.PdfObject object) Checks that current object is aPdfStreamand has keyPdfName.Subtypeassociated 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 aPdfStreamand has keyPdfName.Subtypeassociated with valuePdfName.Image. If optional keyPdfName.Typeis presented it should be associated with the valuePdfName.XObject.- Specified by:
-
testin 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
-