Package com.datalogics.PDFL
Class TextRun
java.lang.Object
com.datalogics.PDFL.Element
com.datalogics.PDFL.TextRun
Represents one or more contiguous characters in a text object. All the characters contained within a text run have the same style, color, font, and size.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete()doubleDeprecated, use Text.GetAdvanceForTextRun(int textRunIndex) instead.getFont()The font of this TextRun.Get the graphic state of the text run.byte[]The raw, un-interpreted text as char codes of this TextRun.getText()The text of this TextRun.The TextState of this TextRun.voidThe font of this TextRun.voidsetGraphicState(GraphicState gstate) Set the Graphic State of the text run.voidThe text of this TextRun.
-
Constructor Details
-
TextRun
-
-
Method Details
-
delete
public void delete() -
getText
The text of this TextRun. -
setText
The text of this TextRun. -
getRawText
public byte[] getRawText()The raw, un-interpreted text as char codes of this TextRun. -
getFont
The font of this TextRun. -
setFont
The font of this TextRun. -
getAdvance
public double getAdvance()Deprecated, use Text.GetAdvanceForTextRun(int textRunIndex) instead. This version does not indicate the direction of the advance width.The advance width of this run of text.
The advnace width is the amount by which the current point advances when the text run is drawn. Advance width is returned in user space.
-
getTextState
The TextState of this TextRun. -
getGraphicState
Get the graphic state of the text run.May return null if this element does not have a GraphicState.
-
setGraphicState
Set the Graphic State of the text run.- Parameters:
gstate- the new/updated Graphic State for the text run.
-