THotPDF.AddPDFAssociatedFile Method

Embeds a file, creates its FileSpec and /AFRelationship, and registers it in both Catalog /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

Usage notes

The active profile must be PDF/A-3, PDF/A-4e, or PDF/A-4f

Related APIs