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
| Name | Purpose |
|---|---|
| This member takes no explicit parameters | |
Return value
Returns an AnsiString value
Usage notes
- The Lang key sits in the document Catalog dictionary and stands for the document's default language; pages or content streams may carry overriding local language tags
- The return value is used by accessibility tools and screen readers, and can also assist in determining the text writing direction
- If the language identifier needs to be modified, please use the SetLoadedLanguage method