ImageEn, unit iexUserInteractions |
|
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 for PDF attachment support
| Demos\PDF\PDFViewer\PdfViewer.dpr |
// Prompt the user to add an attachment
if OpenDialog1.Execute() then
ImageEnView1.PdfViewer.AddAttachment( OpenDialog1.FileName );
See Also
◼Attachment◼AttachmentCount