procedure SetAttachmentStringValue(Index: Integer; const Key, Value: WString);
| Index | Integer. Zero-based index of the document-level attachment |
| Key | WString. Name of the file-specification dictionary entry to write |
| Value | WString. Text to store under that key |
Stores private metadata on an embedded file, which is how a workflow keeps its own bookkeeping with the attachment instead of in a side channel that can be separated from the document
Writing an existing key replaces its value. An index outside the attachment list, or a PDFium build without the capability, leaves the document unchanged
The change lives in the in-memory document until the file is written by SaveAs or one of its variants