install python weasyprint ps: WeasyPrint is a visual rendering engine for HTML and CSS that can export to PDF. It aims to support web standards for printing. WeasyPrint is free software made available under a BSD license.
sudo apt-get install libxml2-dev libxslt1-dev python-dev
sudo apt-get libffi6 libffi-dev
sudo apt-get ttf-wqy-microhei ttf-wqy-zenhei xfonts-wqy
sudo pip install weasyprint