add reportlab/xhtml2pdf dependency;use python subprocess to call phantomjs to generate PDF