PDFium Component Docs

DeleteAttachment 関数

この API エントリでは識別子、シグネチャ、コードブロック、PDF 用語を元の表記のまま保持します。
コンポーネント: TPdf  ·  ユニット: PDFium
Removes the embedded file attachment at the given index.

構文

function DeleteAttachment(Index: Integer): Boolean;

説明

指定した index の embedded file attachment を削除します

削除後は index が詰まります。複数削除するときは上から順に削除してください

現在ページへの編集はすべて PDFium の in-memory representation に buffered されます。rendering cache を更新するには UpdatePage を呼び、変更を保存するには SaveToFile を呼んでください

備考

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;

関連項目

CreateAttachment, Attachment, AttachmentCount