Document Lang
Configure the <html>
lang attribute to use for generated HTML files.
This can be any BCP 47 language tag or one of the special values (unset
or inherit
).
The provided value will be overwritten by the value of the /Lang entry in the PDF file’s /Catalog dictionary (when available), except when using unset
.
Possible values:
unset
- Do not set a lang valueinherit
- Inherit the lang value from the PDF, when available- Any valid BCP 47 language tag (overridden by the lang value from the PDF, when available)
Default: unset
Usage Examples
Command Line
-Dorg.jpedal.pdf2html.documentLang="en-US"
Cloud
{ "org.jpedal.pdf2html.documentLang": "en-US" }
Java
conversionOptions.setDocumentLang("en-US");