Class PdfContentTextExtractor
java.lang.Object
org.openpdf.text.pdf.parser.PdfContentStreamHandler
org.openpdf.text.pdf.parser.PdfContentTextExtractor
-
Nested Class Summary
Nested classes/interfaces inherited from class PdfContentStreamHandler
PdfContentStreamHandler.BeginText, PdfContentStreamHandler.Do, PdfContentStreamHandler.EndText, PdfContentStreamHandler.ModifyCurrentTransformationMatrix, PdfContentStreamHandler.MoveNextLineAndShowText, PdfContentStreamHandler.MoveNextLineAndShowTextWithSpacing, PdfContentStreamHandler.PopGraphicsState, PdfContentStreamHandler.ProcessGraphicsStateResource, PdfContentStreamHandler.PushGraphicsState, PdfContentStreamHandler.SetTextCharacterSpacing, PdfContentStreamHandler.SetTextFont, PdfContentStreamHandler.SetTextHorizontalScaling, PdfContentStreamHandler.SetTextLeading, PdfContentStreamHandler.SetTextRenderMode, PdfContentStreamHandler.SetTextRise, PdfContentStreamHandler.SetTextWordSpacing, PdfContentStreamHandler.ShowText, PdfContentStreamHandler.ShowTextArray, PdfContentStreamHandler.TextMoveNextLine, PdfContentStreamHandler.TextMoveStartNextLine, PdfContentStreamHandler.TextMoveStartNextLineWithLeading, PdfContentStreamHandler.TextSetTextMatrix -
Field Summary
Fields inherited from class PdfContentStreamHandler
contextNames, gsStack, operators, renderListener, textFragments, textFragmentStreams, textLineMatrix, textMatrix -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) voiddisplayPdfString(PdfString string) Displays text.protected voidLoads all the supported graphics and text state operators in a map.(package private) void(package private) voidpushContext(String newContextName) voidreset()
-
Constructor Details
-
PdfContentTextExtractor
-
-
Method Details
-
installDefaultOperators
protected void installDefaultOperators()Loads all the supported graphics and text state operators in a map.- Overrides:
installDefaultOperatorsin classPdfContentStreamHandler
-
popContext
void popContext()- Specified by:
popContextin classPdfContentStreamHandler
-
pushContext
- Specified by:
pushContextin classPdfContentStreamHandler
-
reset
public void reset()- Specified by:
resetin classPdfContentStreamHandler
-
displayPdfString
Displays text.- Specified by:
displayPdfStringin classPdfContentStreamHandler- Parameters:
string- the text to display
-
getResultantText
- Specified by:
getResultantTextin classPdfContentStreamHandler- Returns:
- result text
-