-
- // since LyX uses unicode, also set the PDF strings to unicode strings with the
- // hyperref option "unicode"
- opt += "unicode=true,";
+
+ // Driver needed by specific converters
+ if (!runparams.hyperref_driver.empty())
+ opt += runparams.hyperref_driver + ",";
+
+ // Since LyX uses unicode, also set the PDF strings to unicode strings
+ // with the hyperref option "unicode". This is only needed with pdflatex.
+ // As of 2021/02/04, unicode=true is default.
+ if (!LaTeXFeatures::isAvailableAtLeastFrom("hyperref", 2021, 2, 4)
+ && !runparams.isFullUnicode() && !runparams.use_japanese)
+ opt += "unicode=true,";