public class SimpleTextExtractingPdfContentStreamProcessor extends PdfContentStreamProcessor
| Modifier and Type | Field and Description |
|---|---|
(package private) Matrix |
lastEndingTextMatrix
keeps track of a text matrix.
|
(package private) Matrix |
lastTextLineMatrix
keeps track of a text matrix.
|
(package private) StringBuffer |
result
The StringBuffer used to write the resulting String.
|
| Constructor and Description |
|---|
SimpleTextExtractingPdfContentStreamProcessor()
Creates a new text extraction processor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
displayText(String text,
Matrix endingTextMatrix)
Writes text to the result.
|
String |
getResultantText()
Returns the result so far.
|
void |
reset()
Resets the graphics state stack, matrices and resources.
|
displayPdfString, getCurrentTextLineMatrix, getCurrentTextMatrix, getStringWidth, gs, invokeOperator, processContentMatrix lastTextLineMatrix
Matrix lastEndingTextMatrix
StringBuffer result
public SimpleTextExtractingPdfContentStreamProcessor()
public void reset()
PdfContentStreamProcessorreset in class PdfContentStreamProcessorpublic String getResultantText()
public void displayText(String text, Matrix endingTextMatrix)
displayText in class PdfContentStreamProcessortext - The text that needs to be displayedendingTextMatrix - a text matrixPdfContentStreamProcessor.displayText(java.lang.String, com.lowagie.text.pdf.parser.Matrix)