Class FontDictionaryPredicate
java.lang.Object
com.itextpdf.pdfoptimizer.handlers.fontduplication.predicates.FontDictionaryPredicate
- All Implemented Interfaces:
-
IPdfObjectPredicate
Checks if current
PdfObject
is a font PdfDictionary
.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
test
(com.itextpdf.kernel.pdf.PdfObject object) Checks that current object is aPdfDictionary
and has keyPdfName.Type
and it is associated with the valuePdfName.Font
and also has keyPdfName.Subtype
with the value ofPdfFont
implementations.
-
Constructor Details
-
FontDictionaryPredicate
public FontDictionaryPredicate()
-
-
Method Details
-
test
public boolean test(com.itextpdf.kernel.pdf.PdfObject object) Checks that current object is aPdfDictionary
and has keyPdfName.Type
and it is associated with the valuePdfName.Font
and also has keyPdfName.Subtype
with the value ofPdfFont
implementations.- Specified by:
-
test
in interfaceIPdfObjectPredicate
- Parameters:
-
object
- is an argument - Returns:
- is a result of evaluation
-