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 | 聲音寫出成功 |