AddPageAssociatedFileFromFile

Tệp nhúng

Mô tả

Gắn một tệp nhúng đọc từ đĩa vào mảng /AF của một trang

Cú pháp

Delphi

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

Giá trị trả về

0Tệp không tồn tại hoặc xác thực thất bại
RefHandle của đối tượng đặc tả tệp mới

Ghi chú

DisplayName mặc định là tên tệp trích từ FileName khi để rỗng. Các tham số còn lại và ngữ nghĩa /AF cấp trang theo AddPageAssociatedFileFromString

Ví dụ

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

Xem thêm

AddAssociatedFileFromString, GetAssociatedFileCount