[reportlab-users] ReportLab and IronPython

Tom T. mailinglisttank at googlemail.com
Wed Feb 29 04:17:10 EST 2012

Hi Andy,

thanks for your answer.

Now I have installed the Binary (reportlab-2.5.win32-py2.7.exe) into my

When I do

> import reportlab

> print reportlab.Version

I get the current Version.

But when I do a little bit more

> from reportlab.graphics.shapes import Drawing, String

> from reportlab.graphics import renderPDF


> d = Drawing(100, 100)

> s = String(50, 50, 'Hello World')

> d.add(s)

> renderPDF.drawToFile(d, 'HelloWorld.pdf')

I get an UnicodeDecodeError:

Traceback (most recent call last):
File "C:\Programme\IronPython
2.7.1\lib\site-packages\reportlab\pdfbase\pdfdoc.py", line 257, in
File "C:\Programme\IronPython
2.7.1\lib\site-packages\reportlab\pdfbase\pdfdoc.py", line 451, in format
File "C:\Programme\IronPython
2.7.1\lib\site-packages\reportlab\pdfbase\pdfdoc.py", line 916, in format
File "test.py", line 7, in <module>
File "C:\Programme\IronPython
2.7.1\lib\site-packages\reportlab\graphics\renderPDF.py", line 289, in
File "C:\Programme\IronPython
2.7.1\lib\site-packages\reportlab\pdfgen\canvas.py", line 1123, in save
File "C:\Programme\IronPython
2.7.1\lib\site-packages\reportlab\pdfbase\pdfdoc.py", line 235, in
UnicodeDecodeError: ('unknown', u'\x93', 0, 1, '')

Do you have any ideas?

Thanks a lot,


2012/2/29 Andy Robinson <andy at reportlab.com>

> On 29 February 2012 07:59, Tom Tom <mailinglisttank at googlemail.com> wrote:

> > Hello everybody,

> >

> > does anyone have a tutorial to install ReportLab in IronPython?


> Nobody within ReportLab does. It ought to work (slowly) for pure PDF

> generation but to my knowledge nobody has written an equivalent of our

> c accelerator module or our bitmap-rendering extension.


> I know some of the Resolver guys were looking at this a few years ago,

> but I think they went for some sort of CPython/IronPython glue

> instead...


> - Andy

> _______________________________________________

> reportlab-users mailing list

> reportlab-users at lists2.reportlab.com

> http://two.pairlist.net/mailman/listinfo/reportlab-users


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://two.pairlist.net/pipermail/reportlab-users/attachments/20120229/3606095b/attachment.htm>

More information about the reportlab-users mailing list