Class TextRegionEventFilter
java.lang.Object
com.itextpdf.kernel.pdf.canvas.parser.filter.TextRegionEventFilter
- All Implemented Interfaces:
-
IEventFilter
This
IEventFilter
implementation only accepts text render events within the specified rectangular region.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
accept
(IEventData data, EventType type) This method checks an event and decides whether it should be processed further (corresponds totrue
return value), or filtered out (corresponds tofalse
return value).
-
Constructor Details
-
TextRegionEventFilter
Constructs a filter instance.- Parameters:
-
filterRect
- the rectangle to filter text against
-
-
Method Details
-
accept
Description copied from interface:IEventFilter
This method checks an event and decides whether it should be processed further (corresponds totrue
return value), or filtered out (corresponds tofalse
return value).- Specified by:
-
accept
in interfaceIEventFilter
- Parameters:
-
data
- event data -
type
- event type - Returns:
- true to process event further, false to filter event out
-