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 返回值之间的值
Tag1 = 文件名 2 = MIME 类型 3 = 创建日期 4 = 修改日期 5 = 标题 7 = 描述
NewValue指定属性的新值

返回值

属性设置成功后返回 1。Index 不是嵌入文件的标识或 Tag 不是有效的属性标识符时返回 0。