THotPDF.GetLoadedAnnotationName Method
Gets the annotation name string for the specified page and index position in the loaded PDF document
Declaration
function GetLoadedAnnotationName(PageIndex, AnnotationIndex: Integer): AnsiString;
Unit
HPDFDoc
Parameters
| Name | Purpose |
|---|---|
PageIndex | Zero-based index of the target page |
AnnotationIndex | Zero-based index of the annotation on the target page |
Return value
Returns the name string of the annotation; returns an empty string if the annotation has no name or the index is out of bounds
Usage notes
- 调用前须确认文档已成功加载,且 PageIndex 在有效范围内
- AnnotationIndex must be less than the amount returned by GetLoadedAnnotationCount for that page
- The return value is an AnsiString; if Unicode handling is required, the caller should perform the encoding conversion