AddSVGAnnotationFromFile
矢量图形、图像处理、批注和热点链接、页面布局
描述
将 SVG 文件作为注释添加到当前页面。仅在使用 Adobe Acrobat 6 或 Adobe Reader 6 查看 PDF 时受支持。更早及更高版本均不会显示 SVG 注释
语法
Delphi
Function TPDFlib.AddSVGAnnotationFromFile(Left, Top, Width, Height: Double; Const FileName: WideString; Options: Integer): Integer;
ActiveX
Function PDFlib::AddSVGAnnotationFromFile(Left As Double, Top As Double, Width As Double, Height As Double, FileName As String, Options As Long) As Long
DLL
int DLAddSVGAnnotationFromFile(int InstanceID, double Left, double Top, double Width, double Height, const wchar_t * FileName, int Options);
参数
| Left | 注释矩形左边的水平坐标 |
|---|---|
| Top | 注释矩形上边缘的垂直坐标 |
| Width | 注释矩形的宽度 |
| Height | 批注矩形的高度 包含 SVG 图像的文件路径和名称 |
| FileName | |
| Options | 此参数会被忽略,应设为 0 |
返回值
| 0 | 无法打开 SVG 文件 |
|---|---|
| 1 | 已成功添加 SVG 注释 |