ImageEn, unit iexUserInteractions

TIEPdfViewer.DeleteAttachment

TIEPdfViewer.DeleteAttachment

Declaration

function DeleteAttachment(Index: Integer): Boolean;

Description

Remove an embedded file from the current PDF document.
Result is false if an error is encountered.

Note: In Delphi versions before 2007, some attachment functionality is not supported

Demo

Demo  Demos\PDF\PDFViewer\PdfViewer.dpr

Example

// Delete all attachments from document
While ImageEnView1.PdfViewer.AttachmentCount > 0 do
  ImageEnView1.PdfViewer.DeleteAttachment( 0 );

See Also

Attachment
AttachmentCount
SaveAttachment
AddAttachment