THotPDF.SetLoadedAnnotationContents Method

Replaces the selected loaded annotation's /Contents string and invalidates its page's render cache

This method preserves the existing appearance and rich text; changing /Contents alone does not rebuild visible FreeText text in /AP

Declaration

procedure SetLoadedAnnotationContents(PageIndex, AnnotationIndex: Integer; const AContents: AnsiString);

Unit

HPDFDoc

Parameters

NamePurpose
PageIndexZero-based index or object index used to select an existing item
AnnotationIndexZero-based index or object index used to select an existing item
AContentsHuman-readable text stored in the PDF object, action, annotation, or structure element

Return value

This member does not return a value

Usage notes

Related APIs