Class PdfFormXObjectPredicate
java.lang.Object
com.itextpdf.pdfoptimizer.handlers.util.PdfFormXObjectPredicate
- All Implemented Interfaces:
-
IPdfObjectPredicate
Predicate function which detects form xObjects.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
test
(com.itextpdf.kernel.pdf.PdfObject object) Checks that current object is aPdfStream
and has keyPdfName.Subtype
associated with valuePdfName.Form
.
-
Constructor Details
-
PdfFormXObjectPredicate
public PdfFormXObjectPredicate()Creates form xObject predicate function.
-
-
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.Form
. 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
-