PdfTextData.GetCharacters Method

Gets the collection of all characters in this chunk.

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


public PdfCollection<PdfTextData> GetCharacters()
Public Function GetCharacters As PdfCollection(Of PdfTextData)

Return Value

Type: PdfCollection<PdfTextData>
Collection of all characters in this chunk with their bounding rectangles. Characters are ordered according to the visual order.


Characters are always ordered according to the visual order. I.e., from left to right for horizontal writing mode.

This method is useful when you extract text as is or by words (for example, using GetWords()). In this case, you can get information about specific characters within text chunks. You may use this information to analyze text and bounds of characters.

This method is useless when you extract text by characters (using GetChars()). In this case, you will always get the same single character.

See Also