PDFium Delphi Component Docs

DeleteAnnotation 메서드

컴포넌트: TPdf  ·  유닛: PDFium
현재 page의 지정한 index에 있는 annotation을 제거합니다

구문

procedure DeleteAnnotation(Index: Integer);

설명

현재 페이지에서 지정한 인덱스의 주석을 제거합니다

호출 뒤에 UpdatePage를 불러 렌더링 캐시를 갱신하세요

현재 페이지에 대한 모든 편집은 PDFium의 메모리상 표현에 버퍼링됩니다. UpdatePage로 렌더링 캐시를 갱신하고 SaveAs로 변경 사항을 저장하세요

참고 사항

예제

begin
  if Pdf1.Active and (Pdf1.AnnotationCount > 0) then
  begin
    Pdf1.DeleteAnnotation(0);
    Pdf1.UpdatePage;
  end;
end;

관련 항목

CreateAnnotation, Annotation, AnnotationCount