|
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 carrying the description (Contents), file path (FileName), bounding rectangle (Rectangle) and icon colour. 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 whenever the leaf file name contains non-ASCII characters.
|