THotPDF.SetLoadedFreeTextRichText Method
Rebuilds the appearance and plain contents of an existing FreeText annotation from UTF-8 rich text and an optional default style
Declaration
procedure SetLoadedFreeTextRichText(PageIndex, AnnotationIndex: Integer; const RichContent: AnsiString; const DefaultStyle: AnsiString = '');
Unit
HPDFDoc
Parameters
| Name | Purpose |
|---|---|
PageIndex | Zero-based index of the loaded page |
AnnotationIndex | Index of the existing FreeText annotation on that page |
RichContent | XML fragment written to /RC |
DefaultStyle | Optional /DS default style string applied to the rich content |
Return value
This member does not return a value
Usage notes
- Use THotPDF.AddLoadedFreeTextAnnotationRichText to create a FreeText annotation with rich content in one call
- The normal /AP appearance and /Contents are generated together with /RC and /DS, using embedded fonts and the supported HTML/CSS subset
- This convenience method uses clip overflow and preserves existing opacity, rotation, and alignment; use SetLoadedFreeTextText for explicit font, geometry, and overflow options
- Unsupported geometry or resource limits raise an exception and leave the original annotation intact