function DeleteAttachment(Index: Integer): Boolean;
移除指定索引处的嵌入文件附件
删除后索引会下移;自上而下删除以一次移除多个
对当前页面的所有编辑都缓存在 PDFium 的内存表示中。调用 UpdatePage 刷新渲染缓存,调用 SaveAs 持久化更改
Index 必须在 0 .. AttachmentCount - 1 范围内SaveAs 以持久化更改
begin
if Pdf1.Active and (Pdf1.AttachmentCount > 0) then
Pdf1.DeleteAttachment(0);
end;