Class GlyphTextEventListener
java.lang.Object
com.itextpdf.kernel.pdf.canvas.parser.listener.GlyphEventListener
com.itextpdf.kernel.pdf.canvas.parser.listener.GlyphTextEventListener
- All Implemented Interfaces:
IEventListener, ITextExtractionStrategy
This class expands each
TextRenderInfo for EventType.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.-
Field Summary
Fields inherited from class GlyphEventListener
delegate -
Constructor Summary
ConstructorsConstructorDescriptionConstructs aGlyphEventListenerinstance by aITextExtractionStrategydelegate to which the expanded text events for each glyph occurred will be passed on. -
Method Summary
Modifier and TypeMethodDescriptionAs an resultant text we use the the resultant text of the delegate that implementITextExtractionStrategyand was passed to this class.Methods inherited from class GlyphEventListener
eventOccurred, getSupportedEventsMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface IEventListener
eventOccurred, getSupportedEvents
-
Constructor Details
-
GlyphTextEventListener
Constructs aGlyphEventListenerinstance by aITextExtractionStrategydelegate 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.
-
-
Method Details
-
getResultantText
As an resultant text we use the the resultant text of the delegate that implementITextExtractionStrategyand was passed to this class.- Specified by:
getResultantTextin interfaceITextExtractionStrategy- Returns:
- the resulting text extracted from the delegate
-