Hi Christoph Here is a stripped down servlet which gives me a UnicodeDecodeError. I found out, that the table is the problem, there is no exception with paragraphs.
Mathis -- DreamLab Technologies AG Monbijoustrasse 36 3011 Bern Switzerland Tel: +41 31 398 66 66 Fax: +41 31 398 66 69 PGP Key ID: 2462240B
from WebKit.Page import Page from reportlab.platypus import SimpleDocTemplate, Table from StringIO import StringIO class ReportlabTest(Page): def writeHTML(self): buffer = StringIO() template = SimpleDocTemplate(buffer) template.build([Table([["1", "2"], ["3", "4"], ["5", "6"]])]) pdf = buffer.getvalue() buffer.close() self.response().setHeader("Content-Type", "content=application/pdf") self.response().setHeader("Content-Length", str(len(pdf))) self.response().setHeader("Content-Disposition", "attachment; filename=\"foo.pdf\"") self.write(pdf)
signature.asc
Description: OpenPGP digital signature
------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/
_______________________________________________ Webware-devel mailing list Webware-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/webware-devel