THotPDF.SetLoadedLanguage Method
Sets the global language identifier for the loaded document to support proper pronunciation by accessibility tools and screen readers.
Declaration
procedure SetLoadedLanguage(const ALang: AnsiString);
Unit
HPDFDoc
Parameters
| Name | Purpose |
|---|---|
ALang | Document language code to set, normally an IETF language tag such as en-GB or zh-CN |
Usage notes
This member returns no value
Usage notes
- Use this API in the document creation workflow before the affected page, resource, field or catalogue object is finalised
- Keep object names, field names, resource names and returned handles stable until the document is finalised
- If the document language is omitted from the generated PDF/A or UA standard archive, it can be supplemented via this method.