THotPDF.GetLoadedNamedDestinationName Method
Returns the name string of the specified named destination in the loaded PDF document by index
Declaration
function GetLoadedNamedDestinationName(Index: Integer): AnsiString;
Unit
HPDFDoc
Parameters
| Name | Purpose |
|---|---|
Index | Zero-based index of the named destination; the valid range runs to GetLoadedNamedDestinationCount - 1 |
Return value
Returns the name string of the named destination at the corresponding index; returns an empty string if the index is out of bounds
Usage notes
- When walking all named destinations with this method, call GetLoadedNamedDestinationCount first
- The returned name is the key string in the PDF name tree, which can be used for the alignment and analysis of navigation elements such as bookmarks and link destinations
- Named destination names are unique within the document, but targets with the same name across different documents point to different locations