Class PdfFormXObjectPredicate

java.lang.Object
com.itextpdf.pdfoptimizer.handlers.util.PdfFormXObjectPredicate
All Implemented Interfaces:
IPdfObjectPredicate

public class PdfFormXObjectPredicate extends Object implements IPdfObjectPredicate
Predicate function which detects form xObjects.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates form xObject predicate function.
  • Method Summary

    Modifier and Type
    Method
    Description
    final boolean
    test(com.itextpdf.kernel.pdf.PdfObject object)
    Checks that current object is a PdfStream and has key PdfName.Subtype associated with value PdfName.Form.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 a PdfStream and has key PdfName.Subtype associated with value PdfName.Form. If optional key PdfName.Type is presented it should be associated with the value PdfName.XObject.
      Specified by:
      test in interface IPdfObjectPredicate
      Parameters:
      object - is an argument
      Returns:
      is a result of evaluation