GetPageAssociatedFileEmbeddedIndex

內嵌檔案

描述

傳回頁面 /AF 項目的內嵌串流物件編號

語法

Delphi

Function GetPageAssociatedFileEmbeddedIndex(PageNumber, Index: Integer): Integer;

參數

PageNumber擁有該 /AF 陣列的頁碼(1 起算)
Index該頁 /AF 陣列中的位置(0 起算)

傳回值

0頁面或索引超出範圍,或項目沒有 /EF /F 串流參考
N內嵌檔案串流的物件編號

備註

Index 在頁面 /AF 陣列內從 0 起算。透過 EmbeddedFiles 名稱樹找到附件後,傳回的物件編號可搭配 GetEmbeddedFileStrProperty 與 GetEmbeddedFileContentToString 使用

範例

ObjNum:= PDF.GetPageAssociatedFileEmbeddedIndex(1, 0);

另請參閱

AddAssociatedFileFromString, GetAssociatedFileCount