function DeleteAttachment(Index: Integer): Boolean;
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
Index musi być w zakresie 0 .. AttachmentCount - 1SaveAs po usunięciu załączników, aby utrwalić zmianę
begin
if Pdf1.Active and (Pdf1.AttachmentCount > 0) then
Pdf1.DeleteAttachment(0);
end;