PDFium Delphi Component Docs

DeleteAnnotation メソッド

コンポーネント: TPdf  ·  ユニット: PDFium
現在ページの指定 index にある annotation を削除します

構文

procedure DeleteAnnotation(Index: Integer);

説明

現在ページの指定 index にある annotation を削除します

そのあとで UpdatePage を呼び出して描画キャッシュを更新します

現在のページへのすべての編集は PDFium のメモリ上の表現にバッファリングされます。UpdatePage で描画キャッシュを更新し、SaveAs で変更を永続化してください

備考

例

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

関連項目

CreateAnnotation, Annotation, AnnotationCount