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

Returns True when the document has an information dictionary and at least one field was read successfully

Usage notes

Related APIs