ImageEn, unit iexUserInteractions

TIEPdfViewer.AddAttachment

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

Note: Delphi 2007 or newer is required to add attachments


Demo

Demo  Demos\PDF\PDFViewer\PdfViewer.dpr


Example

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


See Also

Attachment
AttachmentCount