CiviCRM 5.35.1 - CiviCRM falls back to using domPDF despite having a valid path and executable for wkhtmlpdf
Since CiviCRM 5.35.1. CiviCRM falls back to using domPDF despite having a valid path and executable for wkhtmlpdf. Appears that this problem was introduced with this change, https://github.com/civicrm/civicrm-core/commit/6bbe0cf6c513c49f89179aa153cabad3a2a059b7 / PR https://github.com/civicrm/civicrm-core/pull/19311
For CiviCRM sites hosted in an environment with an open_basedir restriction enabled, CiviCRM will be incorrectly report that the wkhtmlpdf can't be found. Despite this Knp\Snappy\Pdf will execute wkhtmlpdf without any problems.
The recent change uses the false positive for the wkhtmlpdf path to then trigger the fallback to domPDF to be used.
Agileware Ref: CIVICRM-1690