PDFium Delphi Component Docs

DeleteAnnotation 方法

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

語法

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