Convert messages to PDF with weasyprint