TextRenderer

Overview

TextRenderer is a class in Aspose.PDF FOSS for Java.

Renders text glyphs onto a {@link Graphics2D} context (ISO 32000-1:2008, §9.4).

This class provides 4 methods for working with TextRenderer objects in Java programs. Available methods include: remapForSymbolicCmap, renderTJArray, renderText, setType3Executor. All public members are accessible to any Java application after installing the Aspose.PDF FOSS for Java package.

Methods

SignatureDescription
setType3Executor(executor: Type3GlyphExecutor)Wires the Type 3 glyph-stream executor (called by the page renderer).
renderText(g2d: Graphics2D, state: GraphicsState, rawBytes: byte[], resources: Resources, parser: PDFParser)Renders a text string (Tj operator).
renderTJArray(g2d: Graphics2D, state: GraphicsState, tjArray: PdfArray, resources: Resources, parser: PDFParser)Renders a TJ array (interleaved strings and positioning adjustments).
remapForSymbolicCmap(font: Font, ch: String, charCode: int)StringRemaps characters into the U+F000–U+F0FF private-use range for symbolic
TrueType fonts whose only cmap subtable is (3,0) Microsoft Symbol.

See Also

 English