property Annotation[Index: Integer]: TPdfAnnotation; // read only
현재 page의 지정한 인덱스에 있는 annotation record를 반환하는 indexed read-only property입니다(subtype, rect, color, contents 등)
Active가 True여야 합니다. 인덱스가 유효 범위를 벗어나면 결과는 정의되지 않으므로 0 .. AnnotationCount - 1 범위의 값을 넘기세요(또는 count되지 않는 변형에서는 array의 Length를 사용하세요)
반환된 record는 호출 시점의 값 스냅샷이며, 이후 문서를 편집해도 이전에 반환된 record는 바뀌지 않습니다
| Index | 0 기반 인덱스이며 범위는 0 .. AnnotationCount - 1입니다 |
var
I: Integer;
begin
if not Pdf1.Active then Exit;
for I := 0 to Pdf1.AnnotationCount - 1 do
begin
// inspect Pdf1.Annotation[I]
Memo1.Lines.Add(IntToStr(I));
end;
end;