THPDFPage.AddFileAttachmentAnnotation

THPDFPage

 

顶部  上一页  下一页

在当前页面上添加新的 FileAttachment 批注

 

Delphi 语法:

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++ 语法:

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 );

 

说明

使用 AddFileAttachmentAnnotation 把文件嵌入当前页面,成为一个 FileAttachment 批注,可指定描述(Contents)、文件路径(FileName)、边界矩形(Rectangle)与图标颜色。Unicode 版 TFileName 重载(非 Unicode 目标上是WideString )可直接使用 Unicode 目录与文件名,不受 ANSI 代码页损耗;叶文件名含非 ASCII 字符时,还会写入一个 /UF 文件规范条目。

 

 

文件附件批注预览