com.lowagie.text.pdf.parser

Class SimpleTextExtractingPdfContentStreamProcessor

public class SimpleTextExtractingPdfContentStreamProcessor extends PdfContentStreamProcessor

A simple text extraction processor.

Since: 2.1.4

Field Summary
MatrixlastEndingTextMatrix
keeps track of a text matrix.
MatrixlastTextLineMatrix
keeps track of a text matrix.
StringBufferresult
The StringBuffer used to write the resulting String.
Constructor Summary
SimpleTextExtractingPdfContentStreamProcessor()
Creates a new text extraction processor.
Method Summary
voiddisplayText(String text, Matrix endingTextMatrix)
Writes text to the result.
StringgetResultantText()
Returns the result so far.
voidreset()

Field Detail

lastEndingTextMatrix

Matrix lastEndingTextMatrix
keeps track of a text matrix.

lastTextLineMatrix

Matrix lastTextLineMatrix
keeps track of a text matrix.

result

StringBuffer result
The StringBuffer used to write the resulting String.

Constructor Detail

SimpleTextExtractingPdfContentStreamProcessor

public SimpleTextExtractingPdfContentStreamProcessor()
Creates a new text extraction processor.

Method Detail

displayText

public void displayText(String text, Matrix endingTextMatrix)
Writes text to the result.

Parameters: text The text that needs to be displayed endingTextMatrix a text matrix

See Also: PdfContentStreamProcessor

getResultantText

public String getResultantText()
Returns the result so far.

Returns: a String with the resulting text.

reset

public void reset()