There are alternatives to html2pdf generation that are better maintained / not abandoned.
In 2021, the reply was that it was "the only library for generating PDF files that is needed to meet the functionality expectations" ( Originally posted by @GSadee in #329), I am wondering which functionality expectations this would be because having used all 3 libraries (wkhtmltopdf , dompdf, html2pdf), I can't immediately think of any.