THotPDF.AddLoadedFreeTextAnnotationRichText Method

Adds a FreeText markup annotation to a loaded page with a rich-text appearance stored in /RC alongside the plain-text /Contents

Declaration

procedure AddLoadedFreeTextAnnotationRichText(PageIndex: Integer; X1, Y1, X2, Y2: Single; const AText: AnsiString; const RichContent: AnsiString; const DefaultStyle: AnsiString = '');

Unit

HPDFDoc

Parameters

NamePurpose
PageIndexZero-based index of the loaded page that receives the annotation
X1, Y1, X2, Y2Annotation rectangle in PDF user space points
ATextPlain-text /Contents fallback shown when a viewer cannot render rich content
RichContentXML fragment written to /RC (PDF 1.5 Table 8.70 / 12.5.6.16); pass '' to keep a plain Contents-only annotation, otherwise RC takes precedence over AText
DefaultStyleOptional /DS default style string applied to the rich content

Return value

This member returns no value

Usage notes

Related APIs