WeasyPrint is described as 'visual rendering engine for HTML and CSS that can export to PDF. It aims to support web standards for printing' and is an app in the Office & Productivity category. There are three alternatives to WeasyPrint for Mac, Windows, Linux, Self-Hosted solutions and Docker. The best alternative is wkhtmltopdf, which is both free and Open Source. Other great apps like WeasyPrint are Prince XML (Free Personal) and PDFreactor (Free Personal).
wkhtmltopdf is an open source (LGPL) command line tools to render HTML into PDF and various image formats using the QT Webkit rendering engine. These run entirely "headless" and do not require a display or display service.