xhtml2pdf 使用 ReportLab / HTML5lib / pyPdf 等项目来将 HTML/XHTML/XHML 转换成 PDF 文档。支持 HTML 5 和 CSS 2.1 以及部分 CSS 3