THotPDF.GetLoadedLanguage Method

Reads the natural language identifier recorded in the Catalog of the loaded PDF document

Declaration

function GetLoadedLanguage: AnsiString;

Unit

HPDFDoc

Return value

Returns a language tag string conforming to the BCP 47 / RFC 3066 format (e.g., 'zh-CN', 'en-US', 'en-GB'); returns an empty string if there is no Lang key in the document Catalog

Usage notes

Related APIs