GetAnnotSoundToFile
注释和热点链接
描述
将指定注释中存储的声音数据复制到文件
语法
Delphi
Function TPDFlib.GetAnnotSoundToFile(Index, Options: Integer; Const SoundFileName: WideString): Integer;
ActiveX
Function PDFlib::GetAnnotSoundToFile(Index As Long, Options As Long, SoundFileName As String) As Long
DLL
int DLGetAnnotSoundToFile(int InstanceID, int Index, int Options, const wchar_t * SoundFileName);
参数
| Index | 注释索引,页面上的第一条注释索引为 1 |
|---|---|
| Options | 0 = 按 PDF 中存储的方式处理声音数据 1 = 将数据编码为 WAV 文件 |
| SoundFileName | 要创建的、包含声音数据的文件路径和名称 |
返回值
| 0 | 无法写入声音 |
|---|---|
| 1 | 声音已成功写入 |