[reportlab-users] bugs

Ulrich Schreiner reportlab-users@reportlab.com
Thu, 05 Feb 2004 18:33:59 +0100


hi,

i upgraded to version 1.19 and now i cannot use PIL and images any more. 
i have to patch "pdfgen/pdfimages.py" and add "import sys"

otherwise you get:
...\reportlab\pdfgen\pdfimages.py", line 137, in getImageData
     if sys.platform[0:4] == 'java':
NameError: global name 'sys' is not defined

another bug: when using the "<u>" tag in a paragraph, you get an error. 
change the line 342 in paragraph.py

from

     text = join(tx.lines[i][1])
to
     text = join(tx.XtraState.lines[i][1])


perhaps someone could patch the library sources ...

cu
</usc>