property MetaText[const Tag: string]: WString; // read only
property Metadata: TPdfDocumentMetadata; // read only
MetaText[Tag] reads a UTF-16 value from the document Info dictionary through PDFium, including standard or custom tag names
Metadata returns one TPdfDocumentMetadata snapshot containing Title, Author, Subject, Keywords, Creator, Producer, CreationDate, and ModifiedDate
Missing fields are returned as empty strings
MetaText reads the Info dictionary, not the catalog’s raw XMP /Metadata stream
var Info: TPdfDocumentMetadata;
begin
Info := Pdf1.Metadata;
Caption := Info.Title + ' — ' + Info.Author;
end;