SetEmbeddedFileStrProperty
文件屬性
描述
設定指定內嵌檔案的某個屬性
語法
Delphi
Function TPDFlib.SetEmbeddedFileStrProperty(Index, Tag: Integer; NewValue: WideString): Integer;
ActiveX
Function PDFlib::SetEmbeddedFileStrProperty(Index As Long, Tag As Long, NewValue As String) As Long
DLL
int DLSetEmbeddedFileStrProperty(int InstanceID, int Index, int Tag, const wchar_t* NewValue);
int DLSetEmbeddedFileStrPropertyA(int InstanceID, int Index, int Tag, const char* NewValue);
參數
| Index | 內嵌檔案的索引。必須是 1 到 EmbeddedFileCount 傳回值之間的數字 |
|---|---|
| Tag | 1 = 檔名 2 = MIME 類型 3 = 建立日期 4 = 修改日期 5 = 標題 7 = 描述 |
| NewValue | 指定屬性的新值。 |
傳回值
屬性設定成功後傳回 1。Index 並非內嵌檔案的識別碼或 Tag 不是有效的屬性識別碼時傳回 0。