|
THPDFPage.AddFileAttachmentAnnotation
|
Top Previous Next |
|
Adds new FileAttachment annotation on the current page.
Delphi syntax: procedure AddFileAttachmentAnnotation ( Contents: AnsiString; FileName: AnsiString; Rectangle: TRect; Color: TColor = clRed ); overload; procedure AddFileAttachmentAnnotation ( const Contents: string; const FileName: TFileName; Rectangle: TRect; Color: TColor = clRed ); overload;
C++ syntax: void __fastcall AddFileAttachmentAnnotation ( AnsiString Contents, AnsiString FileName, const Windows::TRect &Rectangle, Graphics::TColor Color = clRed ); void __fastcall AddFileAttachmentAnnotation ( const UnicodeString Contents, const Sysutils::TFileName FileName, const Windows::TRect &Rectangle, Graphics::TColor Color = clRed );
Description Use AddFileAttachmentAnnotation to embed a file on the current page as a FileAttachment annotation with the specified description (Contents), file path (FileName), bounding rectangle (Rectangle), and icon color. The Unicode TFileName overload (WideString on non-Unicode targets) opens Unicode directory and file names without ANSI code-page loss and writes a /UF file specification entry when the leaf file name contains non-ASCII characters.
|