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

This class expands each iText.Kernel.Pdf.Canvas.Parser.Data.TextRenderInfo for iText.Kernel.Pdf.Canvas.Parser.EventType.RENDER_TEXT event types into multiple iText.Kernel.Pdf.Canvas.Parser.Data.TextRenderInfo instances for each glyph occurred. More...

Inheritance diagram for iText.Kernel.Pdf.Canvas.Parser.Listener.GlyphTextEventListener:
iText.Kernel.Pdf.Canvas.Parser.Listener.GlyphEventListener iText.Kernel.Pdf.Canvas.Parser.Listener.ITextExtractionStrategy iText.Kernel.Pdf.Canvas.Parser.Listener.IEventListener iText.Kernel.Pdf.Canvas.Parser.Listener.IEventListener

Public Member Functions

  GlyphTextEventListener (ITextExtractionStrategy delegate_)
  Constructs a GlyphEventListener instance by a ITextExtractionStrategy delegate to which the expanded text events for each glyph occurred will be passed on. More...
 
virtual String  GetResultantText ()
  As an resultant text we use the the resultant text of the delegate that implement ITextExtractionStrategy and was passed to this class. More...
 
- Public Member Functions inherited from iText.Kernel.Pdf.Canvas.Parser.Listener.GlyphEventListener
  GlyphEventListener (IEventListener delegate_)
  Constructs a GlyphEventListener instance by a delegate to which the expanded text events for each glyph occurred will be passed on. 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

This class expands each iText.Kernel.Pdf.Canvas.Parser.Data.TextRenderInfo for iText.Kernel.Pdf.Canvas.Parser.EventType.RENDER_TEXT event types into multiple iText.Kernel.Pdf.Canvas.Parser.Data.TextRenderInfo instances for each glyph occurred.

This class expands each iText.Kernel.Pdf.Canvas.Parser.Data.TextRenderInfo for iText.Kernel.Pdf.Canvas.Parser.EventType.RENDER_TEXT event types into multiple iText.Kernel.Pdf.Canvas.Parser.Data.TextRenderInfo instances for each glyph occurred. The only difference from GlyphEventListener is that this class conveniently implements ITextExtractionStrategy and can therefore used as a strategy on its own.

Constructor & Destructor Documentation

◆ GlyphTextEventListener()

iText.Kernel.Pdf.Canvas.Parser.Listener.GlyphTextEventListener.GlyphTextEventListener ( ITextExtractionStrategy  delegate_ )
inline

Constructs a GlyphEventListener instance by a ITextExtractionStrategy delegate to which the expanded text events for each glyph occurred will be passed on.

Parameters
delegate_ delegate to pass the expanded glyph render events to.

Member Function Documentation

◆ GetResultantText()

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

As an resultant text we use the the resultant text of the delegate that implement ITextExtractionStrategy and was passed to this class.

Returns
the resulting text extracted from the delegate

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