PDFium Delphi Component Docs

DeleteAttachment 함수

컴포넌트: TPdf  ·  유닛: PDFium
지정한 index의 embedded file attachment를 제거합니다

Syntax

function DeleteAttachment(Index: Integer): Boolean;

Description

지정한 인덱스의 임베디드 파일 첨부를 제거합니다

삭제하면 뒤의 인덱스가 한 칸씩 당겨지므로, 여러 개를 한꺼번에 지울 때는 큰 인덱스부터 지우세요

현재 페이지에 대한 모든 편집은 PDFium의 메모리상 표현에 버퍼링됩니다. UpdatePage로 렌더링 캐시를 갱신하고 SaveToFile로 변경 사항을 저장하세요

Remarks

Example

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;

See Also

CreateAttachment, Attachment, AttachmentCount