PDFium Delphi Component Docs

SetAttachmentStringValue メソッド

コンポーネント: TPdf  ·  ユニット: PDFium
添付ファイルのファイル仕様辞書に 1 つの文字列エントリを書き込みます

構文

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.

説明

埋め込みファイルにプライベートメタデータを保存します。ワークフローが、ドキュメントから分離され得るサイドチャネルではなく、添付ファイルと共に自分の簿記を保持する方法です

既存のキーへの書き込みはその値を置き換えます。添付ファイルリスト外のインデックス、または機能を持たない PDFium ビルドは、ドキュメントを変更しません

変更は、SaveAs またはその変種でファイルが書かれるまでメモリ内ドキュメントに留まります

関連項目

GetAttachmentStringValue, AttachmentHasKey, CreateAttachment, SaveAs