PDFium Delphi Component Docs

DeleteAnnotation メソッド

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

Syntax

procedure DeleteAnnotation(Index: Integer)

Description

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

描画キャッシュを更新するためには、そのあとで UpdatePage を呼び出します

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

Remarks

Example

begin
  if Pdf1.Active then
  begin
    Pdf1.MoveTo(100, 100);
    Pdf1.LineTo(200, 150);
    Pdf1.LineTo(200, 200);
    Pdf1.ClosePath;
    Pdf1.AddPath(clRed, 1.5, clYellow, fmWinding);
    Pdf1.UpdatePage;
  end;
end;

See Also

CreateAnnotation, Annotation, AnnotationCount