PDFium Delphi Component Docs

SetAttachmentStringValue method

Component: TPdf  ·  Unit: PDFium
Write one string entry into the file-specification dictionary of an attachment

Syntax

procedure SetAttachmentStringValue(Index: Integer; const Key, Value: WString);

IndexInteger. Zero-based index of the document-level attachment
KeyWString. Name of the file-specification dictionary entry to write
ValueWString. Text to store under that key

Description

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 which 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

See Also

GetAttachmentStringValue, AttachmentHasKey, CreateAttachment, SaveAs