|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.lowagie.text.pdf.parser.PdfContentStreamProcessor
com.lowagie.text.pdf.parser.SimpleTextExtractingPdfContentStreamProcessor
public class SimpleTextExtractingPdfContentStreamProcessor
A simple text extraction processor.
Field Summary | |
---|---|
(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 Summary | |
---|---|
SimpleTextExtractingPdfContentStreamProcessor()
Creates a new text extraction processor. |
Method Summary | |
---|---|
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. |
Methods inherited from class com.lowagie.text.pdf.parser.PdfContentStreamProcessor |
---|
displayPdfString, getCurrentTextLineMatrix, getCurrentTextMatrix, getStringWidth, gs, invokeOperator, processContent |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
Matrix lastTextLineMatrix
Matrix lastEndingTextMatrix
java.lang.StringBuffer result
Constructor Detail |
---|
public SimpleTextExtractingPdfContentStreamProcessor()
Method Detail |
---|
public void reset()
PdfContentStreamProcessor
reset
in class PdfContentStreamProcessor
public java.lang.String getResultantText()
public void displayText(java.lang.String text, Matrix endingTextMatrix)
displayText
in class PdfContentStreamProcessor
text
- The text that needs to be displayedendingTextMatrix
- a text matrixPdfContentStreamProcessor.displayText(java.lang.String, com.lowagie.text.pdf.parser.Matrix)
|
Hosted by Hostbasket | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |