Click or drag to resize

ElementGetTextLength Method

Gets the text length.

Namespace:  pdftron.PDF
Assembly:  pdftron (in pdftron.dll) Version: 255.255.255.255
Syntax
public double GetTextLength()

Return Value

Type: Double
The text advance distance in text space. The total sum of all of the advance values from rendering all of the Characters within this element, including the advance value on the glyphs, the effect of properties such as 'Char-spacing', 'word-spacing' and positioning adjustments on 'TJ' elements.
Remarks
Computed text length is represented in text space. In order to get the length of the text run in the user space, the returned value should be scaled using the text matrix (GetTextMatrix()) and the current transformation matrix (GetCTM()). See section 4.2 'Other Coordinate Spaces' in PDF Reference Manual for details.
See Also