Open GoogleCodeExporter opened 8 years ago
if might be useful to add the vertical align parameter
to the cell function instead of always putting the text in the middle of the
cell:
therefore replacing:
s += sprintf('BT %.2f %.2f Td (%s) Tj
ET',(self.x+dx)*k,(self.h-(self.y+.5*h+.3*self.font_size))*k,txt2)
by
x=(self.x+dx)*k
y=(self.h-(self.y+(0.5*h)+(.3*self.font_size)))*k #middle
if (valign.upper()=='T'):
y=(self.h-(self.y+(border)+(.3*self.font_size)))*k
elif (valign.upper()=='B'):
y=(self.h-(self.y+(h-border)+(.3*self.font_size)))*k
s += sprintf('BT %.2f %.2f Td (%s) Tj ET', x, y, txt2)
Original comment by ma...@zoqui.com
on 15 Oct 2013 at 8:40
Original issue reported on code.google.com by
ma...@zoqui.com
on 15 Oct 2013 at 7:00