PdfTextData.GetCharacterCodes Method

Gets character codes for the chunk of text data.

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


public byte[] GetCharacterCodes()
Public Function GetCharacterCodes As Byte()

Return Value

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


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