1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
|
for i in range(0, nb):
# print("i", i)
Col = "Col" + str(i)
Col = []
if len(Listes_Ajouts_Full) != 0:
for z in range(0, len(Listes_Ajouts_Full[i])):
# print("Listes_Ajouts_Full[", i, "][", z, "]", Listes_Ajouts_Full[i][z])
Col.append(Listes_Ajouts_Full[i][z])
# print("Col(", i, ")", Col)
List_Col = "List_Col" + str(i)
tb_Col = "tb_Col" + str(i)
tb = "tb" + str(i)
# print("Col", Col)
List_Col = [[z[0]] for z in Col]
tb_Col = Table(List_Col) #, len(List_Col) * [15 * mm], len(List_Col) * [5 * mm])
#
st_Ajouts = TableStyle([
# ("GRID", (0, 0), (-1, -1), 0.25, colors.red),
# ("BACKGROUND", (0, 0), (-1, -1), colors.yellow),
('FONTSIZE', (0, 0), (-1, -1), 8),
('FONTNAME', (0, 0), (-1, -1), 'Verdana'),
('ALIGNMENT', (0, 0), (-1, -1), 'LEFT'),
('TOPPADDING', (0, 0), (-1, -1), 0),
('BOTTOMPADDING', (0, 0), (-1, -1), 0),
('LEFTPADDING', (0, 0), (-1, -1), 0),
])
tb = Table([[tb_Col]], [Largeur_tb[i]])
tb.setStyle(st_Ajouts)
#
flow_Col = "flow_Col" + str(i)
flow_Col = []
flow_Col.append(tb)
frame = "frame" + str(i)
frame = Frame(pos_x[i] , 220, 150, 90, leftPadding=0, bottomPadding=0, rightPadding=0, topPadding=0, showBoundary=0)
frame.addFromList(flow_Col, pdf) |
Partager