THotPDF.SetLoadedAnnotationName Method
Sets the /NM unique name used to identify an annotation independently of its title
Declaration
procedure SetLoadedAnnotationName(PageIndex, AnnotationIndex: Integer; const AName: AnsiString);Parameters
PageIndexis the zero-based loaded page indexAnnotationIndexis the zero-based annotation index on that pageANameis the new unique annotation name
Usage notes
- Invalid indexes leave the loaded document unchanged
- Choose names that remain unique within the document when external workflows address annotations by
/NM - The edit persists through both full and incremental loaded-document saves
Related APIs
GetLoadedAnnotationName · SetLoadedAnnotationTitle · Loaded document toolkit