PDFium Delphi Component 文件

DeleteAnnotation 方法

元件: TPdf  ·  單元: PDFium
移除目前頁面上指定索引的註解

Syntax

procedure DeleteAnnotation(Index: Integer)

Description

移除目前頁面上指定索引的註解

之後請呼叫 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