Python 如何在reportlab中调整特定单元格的大小
我想缩小特定单元格的大小。我尝试了以下代码,但它调整了每一列的大小Python 如何在reportlab中调整特定单元格的大小,python,reportlab,Python,Reportlab,我想缩小特定单元格的大小。我尝试了以下代码,但它调整了每一列的大小 table = Table(data, colWidths=[1.9*inch] * 5) 我还在表style style = TableStyle([ ('colWidths', (3, 3), (3, 3), 0.5*cm ) ]) 但它不起作用 如何调整特定单元格的大小,例如单元格编号3,3您是否尝试将列表以不同的大小传递给colWidths和/或rowHeights?比如: table = Table(data, c
table = Table(data, colWidths=[1.9*inch] * 5)
我还在表style
style = TableStyle([
('colWidths', (3, 3), (3, 3), 0.5*cm )
])
但它不起作用
如何调整特定单元格的大小,例如单元格编号
3,3
您是否尝试将列表以不同的大小传递给colWidths
和/或rowHeights
?比如:
table = Table(data, colWidths=[2, 2, 2, 1, 2, 2],
rowHeights=[2, 2, 2, 1, 2, 2])