PDFium Delphi Component Docs

DeleteAnnotation Méthode

Composant: TPdf  ·  Unit: PDFium
Supprime l’annotation à l’index donné sur la page courante

Syntax

procedure DeleteAnnotation(Index: Integer)

Description

Supprime l’annotation à l’index donné sur la page courante

Appelez UpdatePage ensuite pour rafraîchir le cache de rendu

Toutes les modifications de la page courante sont tamponnées dans la représentation en mémoire de PDFium. Appelez UpdatePage pour actualiser le cache de rendu et SaveToFile to persist the changes.

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