java.lang.Object
org.openpdf.text.pdf.parser.ParsedTextImpl
- All Implemented Interfaces:
TextAssemblyBuffer
- Direct Known Subclasses:
ParsedText,Word
- Author:
- dgd
-
Method Details
-
getText
- Specified by:
getTextin interfaceTextAssemblyBuffer- Returns:
- the text to render
- See Also:
-
getSingleSpaceWidth
public float getSingleSpaceWidth()- Returns:
- The width, in user space units, of a single space character in the current font
-
getAscent
public float getAscent() -
getDescent
public float getDescent() -
getWidth
public float getWidth() -
getStartPoint
- Returns:
- a vector in User space representing the start point of the text
-
getEndPoint
- Returns:
- a vector in User space representing the end point of the text (i.e. the starting point of the text plus the width of the text, transformed by the applicable transformation matrices)
-
getBaseline
Return the vector representing the baseline of this text chunk, even if the length of the text is zero.- Returns:
- baseline
- See Also:
-
shouldNotSplit
public abstract boolean shouldNotSplit()- Returns:
- true if this was extracted from a string containing spaces, in which case, we assume further splitting is not needed.
-
breakBefore
public abstract boolean breakBefore()- Returns:
- true if this was a space or other item that should force a space before it.
-