SetAnnotStrProperty

Annotations and hotspot links

Description

Sets a string property of the specified annotation.

Syntax

Delphi

function TPDFlib.SetAnnotStrProperty(Index, Tag: Integer; Const NewValue: WideString): Integer;

ActiveX

Function PDFlib::SetAnnotStrProperty(Index As Long, Tag As Long, NewValue As String) As Long

DLL

int DLSetAnnotStrProperty(int InstanceID, int Index, int Tag, wchar_t * NewValue);

Parameters

IndexThe index of the annotation. The first annotation on the page has an index of 1.
Tag102 = Contents 103 = Name 110 = Subject 111 = URL of a link annotation 113 = The "Win" file name of a "Launch" action 114 = The "F" file name of a "Launch" action 115 = The "F" file name of a "GoToR" action 127 = Subject 129 = The "UF" file name of a "Launch" action 130 = The "UF" file name of a "GoToR" action
NewValueThe new value of the specified annotation and property.

Return values

0The annotation specified by the Index parameter was out of range or the Tag parameter was not valid
1The annotation property was set successfully