As of now, the requirements.txt may include unnecessary packages. I will clean this up later.
pip3 install mistune xhtml2pdf
python3 render_html.py -f <path/to/chat.json> -o <path/to/output.html>
Then
python3 render_pdf.py -f <path/to/output.html> -o <path/to/output.pdf>