Gets character codes for the chunk of text data.

Namespace:  BitMiracle.Docotic.Pdf
Assembly:  BitMiracle.Docotic.Pdf (in BitMiracle.Docotic.Pdf.dll)

Syntax

C#
public byte[] GetCharacterCodes()
VB
Public Function GetCharacterCodes As Byte()

Return Value

Type: Byte[]
Character codes for the chunk of text data.

Remarks

Character codes represent raw PDF string that is used to draw the text. They strictly depend on a font and font's encoding in PDF document. An attempt to use character codes with another font can lead to unpredictable result.

Use DrawString(Byte[]) method to draw text using character codes. Make sure to set Font property to Font property of this text data.

Use GetCharacters() method to get character codes for individual glyphs.

See Also