templatetricks.generate_pdf