property LinkAnnotation[Index: Integer]: TLinkAnnotation; // read only
Indexed read-only property that returns the explicit /Annot Subtype Link at the given index, including the target action or destination
Requires Active to be True. The result is undefined when the index is outside the valid range; pass values in 0 .. LinkAnnotationCount - 1 (or use the array's Length for non-counted variants).
The returned record is a snapshot of the value at the time of the call; subsequent edits to the document do not modify previously returned records.
| Index | Zero-based index in the range 0 .. LinkAnnotationCount - 1. |
var
I: Integer;
begin
if not Pdf1.Active then Exit;
for I := 0 to Pdf1.LinkAnnotationCount - 1 do
begin
// inspect Pdf1.LinkAnnotation[I]
Memo1.Lines.Add(IntToStr(I));
end;
end;