Table of Contents

Class GlyphTextEventListener

Namespace
iText.Kernel.Pdf.Canvas.Parser.Listener
Assembly
itext.kernel.dll

This class expands each TextRenderInfo for RENDER_TEXT event types into multiple TextRenderInfo instances for each glyph occurred.

public class GlyphTextEventListener : GlyphEventListener, ITextExtractionStrategy, IEventListener
Inheritance
GlyphTextEventListener
Implements
Inherited Members

Remarks

This class expands each TextRenderInfo for RENDER_TEXT event types into multiple 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.

Constructors

GlyphTextEventListener(ITextExtractionStrategy)

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

public GlyphTextEventListener(ITextExtractionStrategy delegate_)

Parameters

delegate_ ITextExtractionStrategy

delegate to pass the expanded glyph render events to.

Methods

GetResultantText()

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

public virtual string GetResultantText()

Returns

string

the resulting text extracted from the delegate