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.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanaccept(IEventData data, EventType type) This method checks an event and decides whether it should be processed further (corresponds totruereturn value), or filtered out (corresponds tofalsereturn value).
-
Field Details
-
filterRect
-
-
Constructor Details
-
TextRegionEventFilter
Constructs a filter instance.- Parameters:
filterRect- the rectangle to filter text against
-
-
Method Details
-
accept
Description copied from interface:IEventFilterThis method checks an event and decides whether it should be processed further (corresponds totruereturn value), or filtered out (corresponds tofalsereturn value).- Specified by:
acceptin interfaceIEventFilter- Parameters:
data- event datatype- event type- Returns:
- true to process event further, false to filter event out
-