THotPDF.SetLoadedAnnotationContents Method

Modifies the text of the Contents field of a specific annotation on the specified page of the loaded PDF document, used for updating the visible text content of the annotation/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 of the target page
AnnotationIndexThe zero-based index of the target annotation in the page annotation array
AContentsThe new text string to write to the annotation's Contents entry

Usage notes

This member returns no value

Usage notes

Related APIs