public abstract class PDFTextUtil extends PDFTextUtil
PDFTextUtil.write(String)).TR_CLIP, TR_FILL, TR_FILL_CLIP, TR_FILL_STROKE, TR_FILL_STROKE_CLIP, TR_INVISIBLE, TR_STROKE, TR_STROKE_CLIP| Constructor and Description |
|---|
PDFTextUtil(FontInfo fontInfo)
Main constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getCurrentEncoding()
Returns the current encoding.
|
Font |
getCurrentFont()
Returns the current font in use.
|
protected void |
initValues()
Resets the state fields.
|
protected boolean |
isCIDFont(String name) |
protected boolean |
isMultiByteFont(String name)
Determines whether the font with the given name is a multi-byte font.
|
void |
setCurrentEncoding(int encoding)
Sets the current encoding.
|
void |
setCurrentFont(Font f)
Sets the current font.
|
void |
writeTf(Font f)
Writes a "Tf" command, setting a new current font.
|
adjustGlyphTJ, beginTextObject, concatMatrix, endTextObject, isInTextObject, setTextRenderingMode, setTextRenderingMode, updateTf, write, write, writeTd, writeTextMatrix, writeTf, writeTJ, writeTj, writeTJMappedChar, writeTJMappedCodePointpublic PDFTextUtil(FontInfo fontInfo)
fontInfo - the font catalogprotected void initValues()
initValues in class PDFTextUtilpublic Font getCurrentFont()
public int getCurrentEncoding()
public void setCurrentFont(Font f)
f - the new font to usepublic void setCurrentEncoding(int encoding)
encoding - the new encodingprotected boolean isMultiByteFont(String name)
name - the name of the fontprotected boolean isCIDFont(String name)
public void writeTf(Font f)
f - the font to selectCopyright © 2025 Apache Software Foundation. All rights reserved.