THotPDF.AddXAdESAssociatedFile Method
Adds xad esassociated file data to the document creation workflow. The call creates or attaches the PDF-side object needed by later output, validation, signing, or page rendering steps
Declaration
function AddXAdESAssociatedFile(const FileName: AnsiString; const XMLBytes: TBytes; const Description: AnsiString= ''; const MimeType: AnsiString= 'application/xml'; const Relationship: AnsiString= 'Source'): THPDFDictionaryObject;
Unit
HPDFDoc
Parameters
| Name | Purpose |
|---|---|
FileName | File path used as the source or destination for this operation |
XMLBytes | Raw byte payload embedded or validated by this API |
Description | Human-readable text stored in the PDF object, action, annotation, or structure element |
MimeType | Input used by AddXAdESAssociatedFile |
Relationship | Input used by AddXAdESAssociatedFile |
Return value
Returns a THPDFDictionaryObject value
Usage notes
- Use this API in the document creation workflow before the affected page, resource, field, or catalog object is finalised
- Keep object names, field names, resource names, and returned handles stable until the document is finalised