public class LocationTextExtractionStrategy extends Object implements TextExtractionStrategy
Modifier and Type | Class and Description |
---|---|
private static class |
LocationTextExtractionStrategy.TextChunk
Represents a chunk of text, it's orientation, and location relative to the orientation vector
|
Modifier and Type | Field and Description |
---|---|
(package private) static boolean |
DUMP_STATE
set to true for debugging
|
private List<LocationTextExtractionStrategy.TextChunk> |
locationalResult
a summary of all found text
|
Constructor and Description |
---|
LocationTextExtractionStrategy()
Creates a new text extraction renderer.
|
Modifier and Type | Method and Description |
---|---|
void |
beginTextBlock()
Called when a new text block is beginning (i.e.
|
private void |
dumpState()
Used for debugging only
|
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)
Called when text should be rendered
|
static boolean DUMP_STATE
private final List<LocationTextExtractionStrategy.TextChunk> locationalResult
public LocationTextExtractionStrategy()
public void beginTextBlock()
RenderListener
beginTextBlock
in interface RenderListener
RenderListener.beginTextBlock()
public void endTextBlock()
RenderListener
endTextBlock
in interface RenderListener
RenderListener.endTextBlock()
public String getResultantText()
getResultantText
in interface TextExtractionStrategy
private void dumpState()
public void renderText(TextRenderInfo renderInfo)
RenderListener
renderText
in interface RenderListener
renderInfo
- information specifying what to renderRenderListener.renderText(com.itextpdf.text.pdf.parser.TextRenderInfo)
public 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