Property DefaultLanguage
- Namespace
- DocWright
- Assembly
- DocWright.dll
DefaultLanguage
Gets or sets the BCP 47 language tag used when the source document declares no document-wide language of its own, or null (the default) to leave it undeclared.
public string? DefaultLanguage { get; set; }
Property Value
Remarks
DocWright reads the document's declared default
(w:docDefaults/w:rPrDefault/w:rPr/w:lang) and never infers one from the text:
a language handed to assistive technology is a fact it acts on, and guessing produces
a document that is confidently mispronounced.
Many documents declare nothing, which leaves a tagged PDF without /Lang and an
accessibility checker with a finding it cannot resolve. This property is how a caller
who *knows* the language supplies it — the same resolution as
CreationDate for PDF/A, and for the same reason: the
information belongs to whoever has it, not to a heuristic.