SetAnnotContents
Annotations and hotspot links
Description
Changes the contents of an annotation.
Syntax
Delphi
Function TPDFlib.SetAnnotContents(Index: Integer; Const NewContents: WideString): Integer;
ActiveX
Function PDFlib::SetAnnotContents(Index As Long, NewContents As String) As Long
DLL
int DLSetAnnotContents(int InstanceID, int Index, const wchar_t* NewContents);
int DLSetAnnotContentsA(int InstanceID, int Index, const char* NewContents);
Parameters
| Index | The index of the annotation. The first annotation on the page has an index of 1. |
|---|---|
| NewContents | The new contents of the annotation |
Return values
Returns 1 when the contents were changed. Returns 0 when Index does not identify an annotation on the current page.