def cuadro_observaciones(self,pdf,y,cotizacion):
p = ParagraphStyle('parrafos')
p.alignment = TA_JUSTIFY
p.fontSize = 8
p.fontName="Times-Roman"
obs=Paragraph("OBSERVACIONES: "+cotizacion.observaciones,p)
observaciones = [[obs]]
tabla_observaciones = Table(observaciones,colWidths=[18 * cm], rowHeights=1.8 * cm)
tabla_observaciones.setStyle(TableStyle(
[
('GRID', (0, 0), (0, 2), 1, colors.black),
('FONTSIZE', (0, 0), (-1, -1), 8),
('ALIGN',(0,0),(-1,-1),'LEFT'),
('VALIGN',(0,0),(-1,-1),'TOP'),
]
))
tabla_observaciones.wrapOn(pdf, 800, 600)
tabla_observaciones.drawOn(pdf, 40,y+20)
评论列表
文章目录