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