PDF4Java Reference Documentation
com.o2sol.pdf4java.content.text Package / PDFTextRun Class
Collapse All Expand All Members Options: Show All Members Options: Filtered
Include Inherited Members
Include Protected Members
In This Topic

PDFTextRun Class Methods
In This Topic

For a list of all members of this type, see PDFTextRun members.

Public Methods

| Name | Description
--- | --- | ---
| getBrush | Gets the brush used for filling the text interior.
| getCorners | Gets the coordinates of the text run corners. The order of the corners in the array is the following: lower left, lower right, upper right, upper left. These corners match the text baseline for the lower corners. The method considers the font's Descent for the lower corners.
| getDisplayBounds | Gets the bounds of the text fragment. These bounds are based on the method.
| getEmbeddedFontData | Gets the embedded font data.
| getFontDictionary | Gets the COS font dictionary.
| getFontMetrics | Gets the font metrics.
| getFontSize | Gets the font size.
| getFriendlyFontName | Gets the friendly font name.
| getGlyph | Gets the glyph at the specified index.
| getGlyphs | Gets the collection of glyphs that compose this text run.
| getMarkedContentIdentifier | Gets the marked content identifier. A negative value means the text run does not belong to a marked content sequence.
| getPen | Gets the pen used for stroking the text outline.
| getPostScriptFontName | Gets the PostScript font name.
| getStructureElement | Gets the structure element that includes this text run
| getText | Gets the text included in the run.
| getTransformedFontSize | Gets the transformed font size.
| getTypographicCorners | Gets the typographic coordinates of the text fragment corners. The order of the corners in the array is the following: lower left, lower right, upper right, upper left. The typographic corners consider the font's Descent for the lower corners. The method considers the text baseline for the lower corners.
| getTypographicDisplayBounds | Gets the typographic bounds of the text fragment. These bounds are based on the method.
| isVertical | This method supports the internal library infrastructure and should not be used by external client code.
| setBrush | This method supports the internal library infrastructure and should not be used by external client code.
| setCorners | This method supports the internal library infrastructure and should not be used by external client code.
| setFontDictionary | This method supports the internal library infrastructure and should not be used by external client code.
| setFontMetrics | This method supports the internal library infrastructure and should not be used by external client code.
| setFontSize | This method supports the internal library infrastructure and should not be used by external client code.
| setGlyphs | This method supports the internal library infrastructure and should not be used by external client code.
| setIsVertical | This method supports the internal library infrastructure and should not be used by external client code.
| setMarkedContentIdentifier | This method supports the internal library infrastructure and should not be used by external client code.
| setPen | This method supports the internal library infrastructure and should not be used by external client code.
| setPostScriptFontName | This method supports the internal library infrastructure and should not be used by external client code.
| setText | This method supports the internal library infrastructure and should not be used by external client code.
| setTypographicCorners | This method supports the internal library infrastructure and should not be used by external client code.
| toString | Returns a string that represents the current Object.
| zInternalMethod16 | This method supports the internal library infrastructure and should not be used by external client code.
| zInternalMethod17 | This method supports the internal library infrastructure and should not be used by external client code.
| zInternalMethod17a | This method supports the internal library infrastructure and should not be used by external client code.
| zInternalMethod17b |

Top
See Also

#### Reference

PDFTextRun Class
com.o2sol.pdf4java.content.text Package

© 2025 O2 Solutions All Rights Reserved.

Send comments on this topic.