TextRenderer
Vue de l’ensemble
‘TextRenderer’ est une classe dans Aspose.PDF FOSS pour Java.
Render les glyphes de texte dans un contexte {@link Graphics2D} (ISO 32000-1:2008, §9.4).
Cette classe fournit 4 méthodes pour travailler avec les objets TextRenderer dans les programmes Java. Les méthodologies disponibles comprennent: ‘remapForSymbolicCmap’, ‘renderTJArray’, `rendText’, ‘setType3Executor’. Tous les membres publics sont accessibles à toute application Java après l’installation de l’Aspose.PDF FOSS pour le package Java .
méthodes
| Signature | Description |
|---|---|
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) → String | Remaps characters into the U+F000–U+F0FF private-use range for symbolic |
| TrueType fonts whose only cmap subtable is (3,0) Microsoft Symbol. |
Voir aussi
- Aspose.PDF pour Java — API d’entreprise