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 Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    test(com.itextpdf.kernel.pdf.PdfObject object)
    Checks that current object is a PdfDictionary and has key PdfName.Type and it is associated with the value PdfName.Font and also has key PdfName.Subtype with the value of PdfFont implementations.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 is associated with the value PdfName.Font and also has key PdfName.Subtype with the value of PdfFont implementations.
      Specified by:
      test in interface IPdfObjectPredicate
      Parameters:
      object - is an argument
      Returns:
      is a result of evaluation