* src/docgen/PdfDoc.py (left_print): Don't convert to cm.

svn: r2069
This commit is contained in:
Don Allingham 2003-09-01 02:23:39 +00:00
parent a49d27a6eb
commit 890b809f80

View File

@ -457,7 +457,8 @@ class PdfDoc(BaseDoc.BaseDoc):
start_x = (x + w/2.0) start_x = (x + w/2.0)
for text in lines: for text in lines:
s = String(startx, start_y, s = String(start_x*cm,
start_y*cm,
str(line), str(line),
fontName=self.pdf_set_font(font), fontName=self.pdf_set_font(font),
fontSize=font.get_size(), fontSize=font.get_size(),
@ -470,10 +471,11 @@ class PdfDoc(BaseDoc.BaseDoc):
def left_print(self,lines,font,x,y): def left_print(self,lines,font,x,y):
l = len(lines) l = len(lines)
size = font.get_size() size = font.get_size()
start_y = self.get_usable_height() - (y*cm) start_y = y
start_x = x * cm start_x = x
for text in lines: for text in lines:
print text, start_x, start_y
s = String(start_x, s = String(start_x,
start_y, start_y,
str(text), str(text),