setLanguage

jsPDF setLanguage Plugin

Source:

Methods

(inner) setLanguage(langCode) → {jsPDF}

Source:

Add Language Tag to the generated PDF

Example
var doc = new jsPDF()
doc.text(10, 10, 'This is a test')
doc.setLanguage("en-US")
doc.save('english.pdf')
Parameters:
Name Type Description
langCode string

The Language code as ISO-639-1 (e.g. 'en') or as country language code (e.g. 'en-GB').

Returns:
Type
jsPDF