PDFium Component Docs

Annotation 속성

이 API 항목은 식별자, 시그니처, 코드 블록, PDF 용어를 원래 형태로 유지합니다.
컴포넌트: TPdf  ·  유닛: PDFium
Indexed property — 현재 page의 지정한 인덱스에 있는 annotation record를 반환합니다(subtype, rect, color, contents 등)

구문

property Annotation[Index: Integer]: TPdfAnnotation; // read only

설명

현재 page의 지정한 인덱스에 있는 annotation record를 반환하는 indexed read-only property입니다(subtype, rect, color, contents 등)

ActiveTrue여야 합니다. 인덱스가 유효 범위를 벗어나면 결과는 정의되지 않으므로 0 .. AnnotationCount - 1 범위의 값을 넘기세요(또는 count되지 않는 변형에서는 array의 Length를 사용하세요)

반환된 record는 호출 시점의 값 스냅샷이며, 이후 문서를 편집해도 이전에 반환된 record는 바뀌지 않습니다

매개변수

Index0 기반 인덱스이며 범위는 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;

참고 항목

AnnotationCount, CreateAnnotation, DeleteAnnotation