Top Description Fields Constructors Methods
org.apache.pdfbox.tools

pack-priv Class AngleCollector

Located in compilation unit of org.apache.pdfbox.tools.ExtractText.

extends PDFTextStripper
Class Inheritance

Collect all angles while doing text extraction. Angles are in degrees and rounded to the closest integer (to avoid slight differences from floating point arithmetic resulting in similarly angled glyphs being treated separately). This class must be constructed for each page so that the angle set is initialized.

Field Summary

Modifier and TypeField and Description
private final Set<Integer>
Inherited from org.apache.pdfbox.text.PDFTextStripper:
charactersByArticledocumentLINE_SEPARATORoutput

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv Set<Integer>
protected void
processTextPosition(TextPosition
The text to process.
text
)

Overrides org.apache.pdfbox.text.PDFTextStripper.processTextPosition.

This will process a TextPosition object and add the text to the list of characters on a page.

Inherited from org.apache.pdfbox.text.PDFTextStripper:
beginMarkedContentSequenceendArticleendDocumentendMarkedContentSequenceendPagegetAddMoreFormattinggetArticleEndgetArticleStartgetAverageCharTolerancegetCharactersByArticlegetCurrentPageNogetDropThresholdgetEndBookmarkgetEndPagegetIgnoreContentStreamSpaceGlyphsgetIndentThresholdgetLineSeparatorgetListItemPatternsgetOutputgetPageEndgetPageStartgetParagraphEndgetParagraphStartgetSeparateByBeadsgetSortByPositiongetSpacingTolerancegetStartBookmarkgetStartPagegetSuppressDuplicateOverlappingTextgetTextgetWordSeparatormatchPatternprocessPageprocessPagessetAddMoreFormattingsetArticleEndsetArticleStartsetAverageCharTolerancesetDropThresholdsetEndBookmarksetEndPagesetIgnoreContentStreamSpaceGlyphssetIndentThresholdsetLineSeparatorsetListItemPatternssetPageEndsetPageStartsetParagraphEndsetParagraphStartsetShouldSeparateByBeadssetSortByPositionsetSpacingTolerancesetStartBookmarksetStartPagesetSuppressDuplicateOverlappingTextsetWordSeparatorstartArticlestartArticlestartDocumentstartPagewriteCharacterswriteLineSeparatorwritePagewritePageEndwritePageStartwriteParagraphEndwriteParagraphSeparatorwriteParagraphStartwriteStringwriteStringwriteTextwriteWordSeparator

Field Detail

anglesback to summary
private final Set<Integer> angles

Constructor Detail

AngleCollectorback to summary
pack-priv AngleCollector() throws IOException

Method Detail

getAnglesback to summary
pack-priv Set<Integer> getAngles()
processTextPositionback to summary
protected void processTextPosition(TextPosition text)

Overrides org.apache.pdfbox.text.PDFTextStripper.processTextPosition.

Doc from org.apache.pdfbox.text.PDFTextStripper.processTextPosition.

This will process a TextPosition object and add the text to the list of characters on a page. It takes care of overlapping text.

Parameters
text:TextPosition

The text to process.

Annotations
@Override