PDFium Delphi Component Docs

DeleteAttachment funkcija

Komponenta: TPdf  ·  Jedinica: PDFium
Uklanja ugrađeni privitak datoteke na zadanom indeksu

Sintaksa

function DeleteAttachment(Index: Integer): Boolean;

Opis

Removes the embedded file attachment at the given index.

Indices shift down after deletion; delete top-down to remove multiple at once.

Sva uređivanja trenutne stranice međuspremaju se u PDFiumovoj reprezentaciji u memoriji. Pozovite UpdatePage za osvježavanje predmemorije renderiranja i SaveToFile za trajno spremanje promjena.

Napomene

Primjer

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;

Vidi također

CreateAttachment, Attachment, AttachmentCount