GetEmbeddedFileStrProperty
文件屬性
描述
取出指定內嵌檔案的字串屬性
要變更這些值,請用 SetEmbeddedFileStrProperty 函式。
Tag 1 傳回的是 PDF 裡儲存的檔案規格,不是交給 AddEmbeddedFile 的平台路徑。ISO 32000-1 §7.11.2 規定檔案規格的各組成部分以斜線分隔,且不以斜線開頭的規格視為相對於 PDF 本身,因此 C:\data\report.csv 這個來源檔案會以 /C/data/report.csv 儲存並讀回。只有分隔符會被轉換;各段名稱文字原樣保留
語法
Delphi
Function TPDFlib.GetEmbeddedFileStrProperty(Index, Tag: Integer): WideString;
ActiveX
Function PDFlib::GetEmbeddedFileStrProperty(Index As Long, Tag As Long) As String
DLL
const wchar_t* DLGetEmbeddedFileStrProperty(int InstanceID, int Index, int Tag);
const char* DLGetEmbeddedFileStrPropertyA(int InstanceID, int Index, int Tag);
參數
| Index | 內嵌檔案的索引。必須是 1 到 EmbeddedFileCount 傳回值之間的數字 |
|---|---|
| Tag | 1 = File name 2 = MIME type 3 = Creation date 4 = Modification date 5 = Title 7 = 描述 |
傳回值
傳回內嵌檔案中 Tag 選取的文字屬性;該屬性無法使用時傳回空字串