PDFium Delphi Component Docs

GetAttachmentStringValue メソッド

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

構文

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

IndexInteger。ドキュメントレベル添付の 0 基準インデックス
KeyWString。file specification 辞書 entry の名前
ResultWString。保存されている値。キーがない、またはテキストを保持していない場合は空文字列

説明

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

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

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

関連項目

SetAttachmentStringValue, AttachmentHasKey, Attachment, AttachmentDescription