* Get the document language. * * Note: Unlike other metadata, language is stored in the Catalog, not Info. * * @returns RFC 3066 language tag, or undefined if not set
()
| 1411 | * @returns RFC 3066 language tag, or undefined if not set |
| 1412 | */ |
| 1413 | getLanguage(): string | undefined { |
| 1414 | const catalog = this.ctx.catalog.getDict(); |
| 1415 | |
| 1416 | return catalog.getString("Lang")?.asString(); |
| 1417 | } |
| 1418 | |
| 1419 | /** |
| 1420 | * Set the document language. |
no test coverage detected