Summary: Methods | Inherited Methods | [Expand All]
public class

# CharData

extends Object

java.lang.Object
↳ | com.pdftron.pdf.CharData

## Class Overview

CharData is a data structure returned by CharIterator that is used to provide extra information about a character within a text run. The extra information includes positioning information, the character data and a number of bytes taken by the character.

## Summary

Public Methods
long | getCharCode() Get the char code.
byte[] | getCharData() Get the char data.
double | getGlyphX() To render text, a virtual point (x, y), located on the baseline, called the pen position, is used to locate glyphs.
double | getGlyphY() Get the glyph y.

[Expand] Inherited Methods
From class java.lang.Object
boolean | equals(Object arg0)
final Class<?> | getClass()
int | hashCode()
final void | notify()
final void | notifyAll()
String | toString()
final void | wait(long arg0, int arg1)
final void | wait(long arg0)
final void | wait()

## Public Methods

#### public long getCharCode ()

Get the char code.

##### Returns

- Char code' For SimpleFonts char_code := char_data[0] for composite fonts char_code is the numeric value of data stored in char_data buffer.

##### Throws

PDFNetException |

#### public byte[] getCharData ()

Get the char data.

##### Returns

- A buffer containing character data. For simple fonts each character is represented by a single byte. For multibyte (CID or Type0) fonts each character may take more than one byte.

##### Throws

PDFNetException |

#### public double getGlyphX ()

To render text, a virtual point (x, y), located on the baseline, called the pen position, is used to locate glyphs. The pen position has already taken into account the effects of any inter-character adjustments due to properties such as font size, text rise, character spacing, word spacing and positioning adjustments on 'TJ' elements.

##### Returns

- glyph horizontal position

##### Throws

PDFNetException |

#### public double getGlyphY ()

Get the glyph y.

##### Returns

- glyph vertical position

##### Throws

PDFNetException |