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 uses the source file name without its directory path

Σύνταξη

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)

Τιμή επιστροφής

Επιστρέφει μη μηδενικό handle ενσωματωμένου αρχείου σε επιτυχία ή 0 όταν αποτύχει η επαλήθευση ή η είσοδος

Remarks

Relationship must be Source, Data, Alternative, Supplement, or UnspecifiedAssociated files require PDF 1.7 and are rejected by PDF/A profiles that forbid embedded files

Δείτε επίσης

AddAssociatedFileFromStream, GetAssociatedFileCount, AddRichMediaAnnotationFromEmbeddedFile

ActiveX

PDFlib::AddAssociatedFileFromFile(...)