- java.lang.Object
-
- com.itextpdf.text.pdf.parser.TextRenderInfo
-
public class TextRenderInfo extends java.lang.ObjectProvides information and calculations needed by render listeners to display/evaluate text render operations.
This is passed between thePdfContentStreamProcessorandRenderListenerobjects as text rendering operations are discovered
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VectorgetEndPoint()floatgetSingleSpaceWidth()VectorgetStartPoint()java.lang.StringgetText()floatgetUnscaledWidth()
-
-
-
Method Detail
-
getText
public java.lang.String getText()
- Returns:
- the text to render
-
getUnscaledWidth
public float getUnscaledWidth()
- Returns:
- the unscaled (i.e. in Text space) width of the text
-
getStartPoint
public Vector getStartPoint()
- Returns:
- a vector in User space representing the start point of the text
-
getEndPoint
public Vector 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)
-
getSingleSpaceWidth
public float getSingleSpaceWidth()
- Returns:
- The width, in user space units, of a single space character in the current font
-
-