THotPDF.GetLoadedDocumentInfo Method

Reads the title, author, subject, keywords, creation tool, and generator tool metadata fields from the information dictionary of the loaded PDF document in one go

Declaration

function GetLoadedDocumentInfo(out ATitle, AAuthor, ASubject, AKeywords, ACreator, AProducer: AnsiString): boolean;

Unit

HPDFDoc

Parameters

NamePurpose
ATitleOutput parameter, receives the value of the Title field in the document information dictionary
AAuthorOutput parameter, receives the value of the Author field
ASubjectOutput parameter, receives the value of the Subject field
AKeywordsOutput parameter, receives the value of the Keywords field
ACreatorOutput parameter, receives the value of the Creator field (the application that created the original document)
AProducerOutput parameter, receives the value of the Producer field (the tool used to convert the document to PDF)

Return value

若文档包含信息字典且至少成功读取一个字段则返回 True;文档无信息字典时返回 False,所有输出参数为空字符串

Usage notes

Related APIs