PDFium Delphi Component Docs

DeleteAttachment Funkcja

Component: TPdf  ·  Unit: PDFium
Usuwa załącznik osadzonego pliku pod podanym indeksem

Składnia

function DeleteAttachment(Index: Integer): Boolean;

Opis

Indeksy przesuwają się w dół po usunięciu; usuwaj od góry, aby usunąć kilka naraz

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

Wszystkie edycje bieżącej strony są buforowane w reprezentacji dokumentu w pamięci PDFium. Wywołaj UpdatePage, żeby odświeżyć cache renderowania, i SaveAs, żeby utrwalić zmiany

Uwagi

Przykład

begin
  if Pdf1.Active and (Pdf1.AttachmentCount > 0) then
    Pdf1.DeleteAttachment(0);
end;

Zobacz też

CreateAttachment, Attachment, AttachmentCount