public class PDFMarkedContentExtractor extends PDFTextStreamEngine
| Constructor and Description |
|---|
PDFMarkedContentExtractor()
Instantiate a new PDFTextStripper object.
|
PDFMarkedContentExtractor(String encoding)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
beginMarkedContentSequence(COSName tag,
COSDictionary properties)
Called when a marked content group begins
|
void |
endMarkedContentSequence()
Called when a a marked content group ends
|
List<PDMarkedContent> |
getMarkedContents() |
protected void |
processTextPosition(TextPosition text)
This will process a TextPosition object and add the text to the list of characters on a page.
|
void |
xobject(PDXObject xobject) |
processPage, showGlyphaddOperator, addOperatorIfAbsent, applyTextAdjustment, beginText, endText, getAppearance, getCurrentPage, getGraphicsStackSize, getGraphicsState, getInitialMatrix, getResources, getTextLineMatrix, getTextMatrix, operatorException, processAnnotation, processChildStream, processOperator, processOperator, processSoftMask, processStream, processTilingPattern, processTilingPattern, processTransparencyGroup, processType3Stream, restoreGraphicsStack, restoreGraphicsState, saveGraphicsStack, saveGraphicsState, setLineDashPattern, setTextLineMatrix, setTextMatrix, showAnnotation, showFontGlyph, showForm, showText, showTextString, showTextStrings, showTransparencyGroup, showType3Glyph, transformedPoint, transformWidth, unsupportedOperatorpublic PDFMarkedContentExtractor()
throws IOException
IOExceptionpublic PDFMarkedContentExtractor(String encoding) throws IOException
encoding - The encoding that the output will be written in.IOExceptionpublic void beginMarkedContentSequence(COSName tag, COSDictionary properties)
PDFStreamEnginebeginMarkedContentSequence in class PDFStreamEnginetag - content tagproperties - optional propertiespublic void endMarkedContentSequence()
PDFStreamEngineendMarkedContentSequence in class PDFStreamEnginepublic void xobject(PDXObject xobject)
protected void processTextPosition(TextPosition text)
processTextPosition in class PDFTextStreamEnginetext - The text to process.public List<PDMarkedContent> getMarkedContents()
Copyright © 2019 sejda. All rights reserved.