SetAnnotIntProperty
注释和热点链接
描述
设置指定注释的整数属性
当 Tag 为 109 时,NewValue 将写为注释 /F 标志值,版本化标志会自动选择所需 PDF 版本:NoZoom、NoRotate、NoView 和 ReadOnly 将文档提升至 PDF 1.3;Locked 提升至 PDF 1.4;ToggleNoView 提升至 PDF 1.5;LockedContents 提升至 PDF 1.7,锁定的较低保存版本仍会通过兼容性门控失败
语法
Delphi
Function TPDFlib.SetAnnotIntProperty(Index, Tag, NewValue: Integer): Integer;
ActiveX
Function PDFlib::SetAnnotIntProperty(Index As Long, Tag As Long, NewValue As Long) As Long
DLL
int DLSetAnnotIntProperty(int InstanceID, int Index, int Tag, int NewValue);
参数
| Index | 注释的索引,页面上的第一个注释索引为 1 |
|---|---|
| Tag | 109 = 标志 116 = "GoToR" 操作的页码(1 为第一页)131 = "GoTo" 操作的页码 |
| NewValue | 指定注释和属性的新值 |
返回值
| 0 | Index 参数指定的注释超出范围,或 Tag 参数无效 |
|---|---|
| 1 | 已成功设置注释属性 |