iText 8.0.2 API
iText.Kernel.Pdf.Canvas.Parser.Listener.FilteredTextEventListener Class Reference

A text event listener which filters events on the fly before passing them on to the delegate. More...

Inheritance diagram for iText.Kernel.Pdf.Canvas.Parser.Listener.FilteredTextEventListener:
iText.Kernel.Pdf.Canvas.Parser.Listener.FilteredEventListener iText.Kernel.Pdf.Canvas.Parser.Listener.ITextExtractionStrategy iText.Kernel.Pdf.Canvas.Parser.Listener.IEventListener iText.Kernel.Pdf.Canvas.Parser.Listener.IEventListener

Public Member Functions

  FilteredTextEventListener (ITextExtractionStrategy delegate_, params IEventFilter[] filterSet)
  Constructs a FilteredTextEventListener instance with a ITextExtractionStrategy delegate. More...
 
virtual String  GetResultantText ()
  As an resultant text we use the concatenation of all the resultant text of all the delegates that implement ITextExtractionStrategy. More...
 
- Public Member Functions inherited from iText.Kernel.Pdf.Canvas.Parser.Listener.FilteredEventListener
  FilteredEventListener ()
  Constructs a FilteredEventListener empty instance. More...
 
  FilteredEventListener (IEventListener delegate_, params IEventFilter[] filterSet)
  Constructs a FilteredEventListener instance with one delegate. More...
 
virtual T  AttachEventListener< T > (T delegate_, params IEventFilter[] filterSet)
  Attaches another IEventListener delegate with its filters. More...
 
virtual void  EventOccurred (IEventData data, EventType type)
  Called when some event occurs during parsing a content stream. More...
 
virtual ICollection< EventType GetSupportedEvents ()
  Provides the set of event types this listener supports. More...
 

Detailed Description

A text event listener which filters events on the fly before passing them on to the delegate.

A text event listener which filters events on the fly before passing them on to the delegate. The only difference from FilteredEventListener is that this class conveniently implements ITextExtractionStrategy and can therefore used as a strategy on its own, apart from the inherited function of filtering event appropriately to its delegates.

Constructor & Destructor Documentation

◆ FilteredTextEventListener()

iText.Kernel.Pdf.Canvas.Parser.Listener.FilteredTextEventListener.FilteredTextEventListener ( ITextExtractionStrategy  delegate_,
params IEventFilter[]  filterSet 
)
inline

Constructs a FilteredTextEventListener instance with a ITextExtractionStrategy delegate.

Parameters
delegate_ a delegate that fill be called when all the corresponding filters for an event pass
filterSet filters attached to the delegate that will be tested before passing an event on to the delegate

Member Function Documentation

◆ GetResultantText()

virtual String iText.Kernel.Pdf.Canvas.Parser.Listener.FilteredTextEventListener.GetResultantText ( )
inlinevirtual

As an resultant text we use the concatenation of all the resultant text of all the delegates that implement ITextExtractionStrategy.

Returns
the resulting concatenation of the text extracted from the delegates

Implements iText.Kernel.Pdf.Canvas.Parser.Listener.ITextExtractionStrategy.