* src/docgen/PdfDoc.py: handle iso-8859-1 characters

svn: r2666
This commit is contained in:
Don Allingham 2004-01-20 04:15:58 +00:00
parent 94a9518c64
commit d19da4e173

View File

@ -199,7 +199,7 @@ class PdfDoc(BaseDoc.BaseDoc):
def end_paragraph(self):
if self.in_table == 0 and self.image == 0:
self.story.append(Paragraph(self.text,self.current_para))
self.story.append(Paragraph(self.text.encode('iso-8859-1'),self.current_para))
else:
self.image = 0
@ -511,7 +511,7 @@ class PdfDoc(BaseDoc.BaseDoc):
fc = make_color(font.get_color())
s = reportlab.graphics.shapes.String(x*cm,
yt,
str(text),
text.encode('iso-8859-1'),
fontName=fnt,
fontSize=font.get_size(),
strokeColor=sc,
@ -532,7 +532,7 @@ class PdfDoc(BaseDoc.BaseDoc):
for text in lines:
s = reportlab.graphics.shapes.String(start_x*cm,
start_y*cm,
str(text),
text.encode('iso-8859-1'),
fontName=fnt,
fontSize=size,
strokeColor=sc,
@ -551,7 +551,7 @@ class PdfDoc(BaseDoc.BaseDoc):
for text in lines:
s = reportlab.graphics.shapes.String(start_x,
start_y,
str(text),
text.encode('iso-8859-1'),
fontSize=size,
strokeColor=sc,
fillColor=fc,