Class FontDictionaryPredicate

java.lang.Object
com.itextpdf.pdfoptimizer.handlers.fontduplication.predicates.FontDictionaryPredicate
All Implemented Interfaces:
IPdfObjectPredicate

public class FontDictionaryPredicate extends Object implements IPdfObjectPredicate
Checks if current PdfObject is a font PdfDictionary.
  • Constructor Details

    • FontDictionaryPredicate

      public FontDictionaryPredicate()
  • Method Details

    • test

      public boolean test (com.itextpdf.kernel.pdf.PdfObject object)
      Checks that current object is a PdfDictionary and has key PdfName.Type and it si associated with the value PdfName.Font.
      Specified by:
      test in interface IPdfObjectPredicate
      Parameters:
      object - is an argument
      Returns:
      is a result of evaluation