THotPDF.SetDocumentAttachmentMetadata Method
Updates the display name and optional description of an embedded document attachment prior to saving
Declaration
function SetDocumentAttachmentMetadata(Index: Integer; const NewFileName, Description: AnsiString): boolean;
Parameters
Indexis the zero-based position in the document EmbeddedFiles name tree, which is sorted by key; following a rename the entry moves to the position of its new keyNewFileNamebecomes the Filespec/Fand/UFdisplay nameDescriptionreplaces/Desc; pass an empty value to remove it
Return value
Returns True when the attachment entry exists and is updated