RenderListener, TextExtractionStrategypublic class SimpleTextExtractionStrategy extends Object implements TextExtractionStrategy
| Constructor | Description |
|---|---|
SimpleTextExtractionStrategy() |
Creates a new text extraction renderer.
|
| Modifier and Type | Method | Description |
|---|---|---|
protected void |
appendTextChunk(CharSequence text) |
Used to actually append text to the text results.
|
void |
beginTextBlock() |
Called when a new text block is beginning (i.e.
|
void |
endTextBlock() |
Called when a text block has ended (i.e.
|
String |
getResultantText() |
Returns the result so far.
|
void |
renderImage(ImageRenderInfo renderInfo) |
no-op method - this renderer isn't interested in image events
|
void |
renderText(TextRenderInfo renderInfo) |
Captures text using a simplified algorithm for inserting hard returns and spaces
|
public SimpleTextExtractionStrategy()
public void beginTextBlock()
RenderListenerbeginTextBlock in interface RenderListenerpublic void endTextBlock()
RenderListenerendTextBlock in interface RenderListenerpublic String getResultantText()
getResultantText in interface TextExtractionStrategyprotected final void appendTextChunk(CharSequence text)
text - the text to append to the text results accumulated so farpublic void renderText(TextRenderInfo renderInfo)
renderText in interface RenderListenerrenderInfo - render infopublic void renderImage(ImageRenderInfo renderInfo)
renderImage in interface RenderListenerrenderInfo - information specifying what to renderRenderListener.renderImage(com.itextpdf.text.pdf.parser.ImageRenderInfo)Copyright © 2018. All rights reserved.