PDFium Delphi Component Docs

SetTextObjectFontSize method

Component: TPdf  ·  Unit: PDFium
Edits the native font size of one text object in place

Syntax

procedure SetTextObjectFontSize(Index: Integer; FontSize: Single);

Description

SetTextObjectFontSize writes FontSize into the native text object at Index, changing the rendered size without approximating through a matrix transform

Call UpdatePage afterwards so that the page scene and renderers pick up the change

Remarks

Example

Pdf1.SetTextObjectFontSize(ObjIdx, 14);
Pdf1.UpdatePage;

Saved paragraph metadata

Since internal v3.403.0, direct logical text, object membership and ActualText changes clear the affected saved paragraph cluster tables Geometry, style and metadata-only changes retain the tables and regenerate complete represented shared mark scopes across adjacent nonempty streams Mark list membership is local to the selected object, whilst exact shared declarations keep their identity The bundled DLLs isolate named-property parameter edits; native builds without detachment reject a table-affecting logical change before mutation

Read the native character maps again after mutation or reload These low-level operations do not supply reviewed replacement semantics or repair arbitrary tagged ownership Use the batch semantic-edit policies when those values and bindings must be reviewed together See scope, ownership and remaining source-preservation limits

See Also

TextObjectFontSize, TransformPageObject, UpdatePage