PDFium Delphi Component Docs

GetAttachmentStringValue 方法

组件: TPdf  ·  单元: PDFium
从附件的文件规范字典读取一个字符串条目

语法

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

IndexInteger。文档级附件的从零开始的索引
KeyWString。文件规范字典条目的名称
ResultWString。存储的值,当键不存在或不含文本时为空字符串

说明

读取生产者随嵌入文件存储的私有元数据——源路径、内容哈希、工作流标记——无需经由原始文档结构

空结果既涵盖缺失的键也涵盖空值;当差异重要时使用 AttachmentHasKey

标准条目有自己的属性:AttachmentName、AttachmentType 和 AttachmentDescription

参见

SetAttachmentStringValue, AttachmentHasKey, Attachment, AttachmentDescription