| Modifier and Type | Field and Description |
|---|---|
| private final Map | |
| private final Deque | |
| private final List | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| public | |
| public | PDFMarkedContentExtractor(String
The encoding that the output will be written in. encoding)Constructor. |
| Modifier and Type | Method and Description |
|---|---|
| public void | beginMarkedContentSequence(COSName
indicates the role or significance of the sequence tag, COSDictionary optional properties properties)Overrides org. Called when a marked content group begins |
| public void | endMarkedContentSequence()
Overrides org. Called when a marked content group ends |
| public List | |
| public boolean | |
| protected void | processTextPosition(TextPosition
The text to process. text)Overrides org. This will process a TextPosition object and add the text to the list of characters on a page. |
| public void | setSuppressDuplicateOverlappingText(boolean
The suppressDuplicateOverlappingText setting to set. suppressDuplicateOverlappingText)By default the class will attempt to remove text that overlaps each other. |
| private boolean | within(float
The first number to compare to. first, float The second number to compare to. second, float The allowed variance. variance)This will determine of two floating point numbers are within a specified variance. |
| public void |
| characterListMapping | back to summary |
|---|---|
| private final Map<String, List<TextPosition>> characterListMapping | |
| currentMarkedContents | back to summary |
|---|---|
| private final Deque<PDMarkedContent> currentMarkedContents | |
| markedContents | back to summary |
|---|---|
| private final List<PDMarkedContent> markedContents | |
| suppressDuplicateOverlappingText | back to summary |
|---|---|
| private boolean suppressDuplicateOverlappingText | |
| PDFMarkedContentExtractor | back to summary |
|---|---|
| public PDFMarkedContentExtractor() Instantiate a new PDFTextStripper object. | |
| PDFMarkedContentExtractor | back to summary |
|---|---|
| public PDFMarkedContentExtractor(String encoding) Constructor. Will apply encoding-specific conversions to the output text.
| |
| beginMarkedContentSequence | back to summary |
|---|---|
| public void beginMarkedContentSequence(COSName tag, COSDictionary properties) Overrides org. Doc from org. Called when a marked content group begins
| |
| endMarkedContentSequence | back to summary |
|---|---|
| public void endMarkedContentSequence() Overrides org. Doc from org. Called when a marked content group ends
| |
| getMarkedContents | back to summary |
|---|---|
| public List | |
| isSuppressDuplicateOverlappingText | back to summary |
|---|---|
public boolean isSuppressDuplicateOverlappingText()
| |
| processTextPosition | back to summary |
|---|---|
| protected void processTextPosition(TextPosition text) Overrides org. This will process a TextPosition object and add the text to the list of characters on a page. It takes care of overlapping text.
| |
| setSuppressDuplicateOverlappingText | back to summary |
|---|---|
| public void setSuppressDuplicateOverlappingText(boolean suppressDuplicateOverlappingText) By default the class will attempt to remove text that overlaps each other. Word paints the same character several times in order to make it look bold. By setting this to false all text will be extracted, which means that certain sections will be duplicated, but better performance will be noticed.
| |
| within | back to summary |
|---|---|
| private boolean within(float first, float second, float variance) This will determine of two floating point numbers are within a specified variance.
| |
| xobject | back to summary |
|---|---|
| public void xobject(PDXObject xobject) | |