ImageEn, unit iexUserInteractions

TIEPdfViewerInteraction.AddAttachment

TIEPdfViewerInteraction.AddAttachment


Declaration

function AddAttachment(const Filename: string): Boolean; overload;
function AddAttachment(const Name: string; Stream: TStream): Boolean; overload;


Description

Embed a file into the current PDF document.
Result is false if an error is encountered.


Demo

Demo  Demos\Other\PdfViewer\PdfViewer.dpr


Example

// Prompt the user to add an attachment
if OpenDialog1.Execute() then
  ImageEnView1.PdfViewer.AddAttachment( OpenDialog1.FileName );


See Also

- Attachment
- AttachmentCount