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) java.lang.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(java.lang.String text,
Matrix endingTextMatrix)
Writes text to the result.
|
java.lang.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
java.lang.StringBuffer result
public SimpleTextExtractingPdfContentStreamProcessor()
public void reset()
PdfContentStreamProcessorreset in class PdfContentStreamProcessorpublic java.lang.String getResultantText()
public void displayText(java.lang.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)