PDFium Delphi Component Docs

TextObjectFontSize method

Component: TPdf  ·  Unit: PDFium
Reads back the native font size of a single text object

Syntax

function TextObjectFontSize(Index: Integer): Single;

Description

TextObjectFontSize returns the font size stored in the native text object at Index, in PDF user units

Raises EPdfError when no page is open, the index is out of range, or the page object is not a text object

Remarks

Example

Size := Pdf1.TextObjectFontSize(ObjIdx);

See Also

SetTextObjectFontSize, TextObjectGlyphWidth, CharacterFontSize