AddAssociatedFileFromFile

Associated files, attachments, file input

תיאור

Embeds a file once, adds it to the /EmbeddedFiles name tree, and registers the same file specification in the document catalog /AF arrayAn empty

DisplayName משתמש בשם קובץ המקור בלי נתיב התיקייה שלו

תחביר

Delphi and ActiveX

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

DLL

int DLAddAssociatedFileFromFile(int InstanceID, const wchar_t* FileName, const wchar_t* DisplayName, const wchar_t* MIMEType, const wchar_t* Description, const wchar_t* Relationship)

ערך מוחזר

Returns a nonzero embedded-file handle on success or 0 when validation or input fails

הערות

Relationship חייב להיות Source, Data, Alternative, Supplement או Unspecifiedקבצים משויכים דורשים PDF 1.7 ונדחים על ידי פרופילי PDF/A שאוסרים קבצים מוטמעים

ראו גם

AddAssociatedFileFromStream, GetAssociatedFileCount, AddRichMediaAnnotationFromEmbeddedFile

ActiveX

PDFlib::AddAssociatedFileFromFile(...)