AddPageAssociatedFileFromFile

內嵌檔案

描述

將從磁碟讀取的內嵌檔案繫結至單一頁面的 /AF 陣列

語法

Delphi

Function AddPageAssociatedFileFromFile(PageNumber: Integer; Const FileName, DisplayName, MIMEType, Description, Relationship: WideString): Integer;

傳回值

0檔案不存在或驗證失敗
Ref新檔案規格物件的控制代碼

備註

DisplayName 留空時預設為從 FileName 擷取的檔名。其餘參數與頁面層級 /AF 語意遵循 AddPageAssociatedFileFromString

範例

PDF.AddPageAssociatedFileFromFile(2, "schema.xsd", "", "application/xml", "", "Supplement");

另請參閱

AddAssociatedFileFromString, GetAssociatedFileCount