Link
Skip to main content

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 value
  • inherit - 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");

What's included in your BuildVu trial?

  • Access to download the SDK and run it locally.
  • Access to the cloud trial to convert documents in the IDR cloud.
  • Access to the Docker image to set up your own trial server in the cloud.
  • Communicate with IDR developers to ask questions & get expert advice.
  • Plenty of time to experiment and build a proof of concept.
  • Over 100 articles to help you get started and learn about BuildVu.
  • An exceptional PDF to HTML converter that took over 20 years to build!

Learn more about BuildVu

Start Your Free Trial

Trial License Type