THotPDF.AddPDFAssociatedFile Method
Embeds a file, creates its FileSpec and /AFRelationship and registers it in both catalogue /AF and the EmbeddedFiles name tree
Declaration
function AddPDFAssociatedFile(const FileName: AnsiString;
const MimeType: AnsiString; const Description: AnsiString;
const Relationship: AnsiString;
const FileBytes: TBytes): THPDFDictionaryObject;
Unit
HPDFDoc
Parameters
FileNameandMimeTypemust be non-emptyRelationshipacceptsSource,Data,Alternative,SupplementorUnspecifiedFileBytesare copied unchanged into the embedded stream
Usage notes
The active profile must be PDF/A-3, PDF/A-4e or PDF/A-4f