AddAssociatedFileFromFile

Associated files, attachments, file input

Opis

Ugrađuje datoteku jednom, dodaje je u stablo imena /EmbeddedFiles i registruje istu specifikaciju datoteke u /AF nizu kataloga dokumentaPrazan

DisplayName koristi naziv izvorne datoteke bez putanje fascikle

Sintaksa

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)

Povratna vrednost

Vraća rukovaoc ugrađene datoteke različit od nule pri uspehu, ili 0 kad validacija ili ulaz padnu

Napomene

Relationship mora biti Source, Data, Alternative, Supplement ili UnspecifiedPridružene datoteke zahtevaju PDF 1.7 i odbacuju ih PDF/A profili koji zabranjuju ugrađene datoteke

See also

AddAssociatedFileFromStream, GetAssociatedFileCount, AddRichMediaAnnotationFromEmbeddedFile

ActiveX

PDFlib::AddAssociatedFileFromFile(...)