public class SimpleTextExtractionStrategy extends Object implements TextExtractionStrategy
Modifier and Type | Field and Description |
---|---|
private Vector |
lastEnd |
private Vector |
lastStart |
private StringBuffer |
result
used to store the resulting String.
|
Constructor and Description |
---|
SimpleTextExtractionStrategy()
Creates a new text extraction renderer.
|
Modifier and Type | Method and Description |
---|---|
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
|
private final StringBuffer result
public SimpleTextExtractionStrategy()
public void beginTextBlock()
RenderListener
beginTextBlock
in interface RenderListener
public void endTextBlock()
RenderListener
endTextBlock
in interface RenderListener
public String getResultantText()
getResultantText
in interface TextExtractionStrategy
public void renderText(TextRenderInfo renderInfo)
renderText
in interface RenderListener
renderInfo
- render infopublic void renderImage(ImageRenderInfo renderInfo)
renderImage
in interface RenderListener
renderInfo
- information specifying what to renderRenderListener.renderImage(com.itextpdf.text.pdf.parser.ImageRenderInfo)
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses