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 com.itextpdf.kernel.pdf.canvas.parser.listener.GlyphEventListener
delegate
-
Constructor Summary
ConstructorDescriptionConstructs aGlyphEventListener
instance by aITextExtractionStrategy
delegate 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 implementITextExtractionStrategy
and was passed to this class.Methods inherited from class com.itextpdf.kernel.pdf.canvas.parser.listener.GlyphEventListener
eventOccurred, getSupportedEvents
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.itextpdf.kernel.pdf.canvas.parser.listener.IEventListener
eventOccurred, getSupportedEvents
-
Constructor Details
-
GlyphTextEventListener
Constructs aGlyphEventListener
instance by aITextExtractionStrategy
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.
-
-
Method Details
-
getResultantText
As an resultant text we use the the resultant text of the delegate that implementITextExtractionStrategy
and was passed to this class.- Specified by:
-
getResultantText
in interfaceITextExtractionStrategy
- Returns:
- the resulting text extracted from the delegate
-