PDFium Delphi Component Docs

GetAttachmentStringValue メソッド

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

構文

function GetAttachmentStringValue(Index: Integer; const Key: WString): WString;

IndexInteger. Zero-based index of the document-level attachment.
KeyWString. Name of the file-specification dictionary entry.
ResultWString. The stored value, or an empty string when the key is absent or holds no text.

説明

プロデューサーが埋め込みファイルと共に保存したプライベートメタデータ(ソースパス、コンテンツハッシュ、ワークフローマーカー)を、生のドキュメント構造を経由せずに読み取ります

空の結果は「キーがない」と「空の値」の両方をカバーします。違いが重要な場合は AttachmentHasKey を使用します

標準エントリには専用のプロパティがあります。AttachmentNameAttachmentTypeAttachmentDescription です

関連項目

SetAttachmentStringValue, AttachmentHasKey, Attachment, AttachmentDescription