Class TextRegionEventFilter

java.lang.Object
com.itextpdf.kernel.pdf.canvas.parser.filter.TextRegionEventFilter
All Implemented Interfaces:
IEventFilter

public class TextRegionEventFilter extends Object implements IEventFilter
This IEventFilter implementation only accepts text render events within the specified rectangular region.
  • Constructor Details

    • TextRegionEventFilter

      public TextRegionEventFilter (Rectangle filterRect)
      Constructs a filter instance.
      Parameters:
      filterRect - the rectangle to filter text against
  • Method Details

    • accept

      public boolean accept (IEventData data, EventType type)
      Description copied from interface: IEventFilter
      This method checks an event and decides whether it should be processed further (corresponds to true return value), or filtered out (corresponds to false return value).
      Specified by:
      accept in interface IEventFilter
      Parameters:
      data - event data
      type - event type
      Returns:
      true to process event further, false to filter event out