From 713b8f236ac82239df77db70d9e2902ba56479ad Mon Sep 17 00:00:00 2001 From: Jake Jackson Date: Wed, 3 Sep 2025 10:27:51 +1000 Subject: [PATCH] Remove invalid syntax for `$mode` when using a country/language code This PR also adds a link to documentation on the BCP 47 language tag format, which is the revised version of RFC 3066 referenced in the PDF 1.6 specification for the `/Lang` entry. --- reference/mpdf-functions/construct.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reference/mpdf-functions/construct.md b/reference/mpdf-functions/construct.md index ce77052..e1e0f61 100644 --- a/reference/mpdf-functions/construct.md +++ b/reference/mpdf-functions/construct.md @@ -57,7 +57,7 @@ Initialise an instance of mPDF class. Country/language codes are defined in `\Mpdf\LangToFont` class - A country/language code can be passed as e.g. `'en-GB'` or `'en_GB'` or `'en'` + A country/language code can be passed as `'en-GB'` or `'en'`, and should follow the [BCP 47 language tag format](https://developer.mozilla.org/en-US/docs/Glossary/BCP_47_language_tag).