【发布时间】:2012-07-13 07:12:02
【问题描述】:
我在 django 工作。我转换了
的html代码<table border="1">
<tr height="50px"><td><b>Name</b></td></tr>
<tr height="220px"><td>Description</td></tr>
<tr height="50px"><td>Mail</td></tr>
</table>
在 django 中使用 pisa 转换为 pdf。除了对齐之外,一切都很顺利。正如我在 html 表格高度中提到的那样,我需要 pdf 中的行间距。 谁能帮我在pdf(行间距)中获得与html相同的对齐方式?
【问题讨论】:
-
我遵循stackoverflow.com/questions/11410976/django-pdf-with-logo-image 的观点,并在“invoice.html”中使用了上述html 行。