Package com.lowagie.text.pdf.parser
Class SimpleTextExtractingPdfContentStreamProcessor
java.lang.Object
com.lowagie.text.pdf.parser.PdfContentStreamProcessor
com.lowagie.text.pdf.parser.SimpleTextExtractingPdfContentStreamProcessor
A simple text extraction processor.
- Since:
- 2.1.4
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new text extraction processor. -
Method Summary
Modifier and TypeMethodDescriptionvoiddisplayText(String text, Matrix endingTextMatrix) Writes text to the result.Returns the result so far.voidreset()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, registerContentOperator
-
Constructor Details
-
SimpleTextExtractingPdfContentStreamProcessor
public SimpleTextExtractingPdfContentStreamProcessor()Creates a new text extraction processor.
-
-
Method Details
-
reset
public void reset()Description copied from class:PdfContentStreamProcessorResets the graphics state stack, matrices and resources.- Overrides:
resetin classPdfContentStreamProcessor
-
getResultantText
Returns the result so far.- Returns:
- a String with the resulting text.
-
displayText
Writes text to the result.- Specified by:
displayTextin classPdfContentStreamProcessor- Parameters:
text- The text that needs to be displayedendingTextMatrix- a text matrix- See Also:
-