Python reportlab ValueError:无效的颜色值';首字母';
ReportLab/xhtml2pdf在HTML中的这个样式位崩溃之前一直工作得很好:Python reportlab ValueError:无效的颜色值';首字母';,python,reportlab,xhtml2pdf,Python,Reportlab,Xhtml2pdf,ReportLab/xhtml2pdf在HTML中的这个样式位崩溃之前一直工作得很好: <p style="border-style: initial; border-color: initial; border-image: initial; font-family: Ubuntu-R; font-size: small; border-width: 0px; padding: 0px; margin: 0px;">Done:</p> 我通常这样使用它:
<p style="border-style: initial; border-color: initial; border-image: initial;
font-family: Ubuntu-R; font-size: small; border-width: 0px; padding: 0px;
margin: 0px;">Done:</p>
我通常这样使用它:
pdf = pisa.pisaDocument(StringIO.StringIO(html.encode('UTF-8')),
result, encoding='UTF-8', link_callback=fetch_resources)
除了修补其原始代码之外,还有什么方法可以克服此问题吗?边框样式:initial值不正确。有关支持的
边框样式
值,请参见作为参考:
- 没有
- 隐藏的
- 点缀
- 冲刺
- 坚实的
- 双重的
- 沟槽
- 山脊
- 插图
- 开始
pdf = pisa.pisaDocument(StringIO.StringIO(html.encode('UTF-8')),
result, encoding='UTF-8', link_callback=fetch_resources)