mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-18 13:33:51 +00:00
PDF export: write the document language as the catalog's /Lang (#3644)
The writer passed no language to craft-pdf, so exported and printed PDFs had no /Lang and accessibility checkers failed primary-language. Writer::new now passes the BCP 47 tag of the Document Setup language (new vectorcraft_doc::setup::language_tag, en-US by default) through write::Writer::new_with_language, which writes the catalog's /Lang and the XMP dc:language. A language with no tag writes none. /MarkInfo is left for tagged PDF (#3643).
This commit is contained in:
File diff suppressed because one or more lines are too long
+3
-2
File diff suppressed because one or more lines are too long
+3
-2
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user