property MetaText[const Tag: string]: WString; // read only
property Metadata: TPdfDocumentMetadata; // read only
MetaText[Tag] 透過 PDFium 從文件 Info 字典讀取 UTF-16 值,包括標準或自訂標籤名稱
Metadata 傳回單一 TPdfDocumentMetadata 快照,包含 Title、Author、Subject、Keywords、Creator、Producer、CreationDate 與 ModifiedDate
缺少的欄位以空字串傳回
MetaText 讀取的是 Info 字典,而不是目錄的原始 XMP /Metadata 串流
var Info: TPdfDocumentMetadata;
begin
Info := Pdf1.Metadata;
Caption := Info.Title + ' — ' + Info.Author;
end;