ImageEn, unit iexUserInteractions

TIEPdfViewerInteraction.DeleteAttachment

TIEPdfViewerInteraction.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.


Demo

Demo  Demos\Other\PdfViewer\PdfViewer.dpr


Example

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


See Also

- Attachment
- AttachmentCount