Problem (and maybe solution?) converting HTML that has a width set in the style

9 views
Skip to first unread message

Saikat Chakrabarti

unread,
Nov 25, 2009, 8:55:04 PM11/25/09
to Pisa XHTML2PDF Support
Sorry to keeps starting a new thread - my previous messages have not
yet been moderated, so not sure how I can stay on that thread. I
traced down the problem that I was having in my last two threads to
this line in pisa_tags.py:

img.drawWidth *= img.pisaZoom

this is line 297. I printed out img.drawWidth, and it shows up as
"129px". Makes sense that this error would happen if it then is
trying to do math on this string. Seems like pisa is not properly
parsing values inside style elements? How does this ever work? Am I
just not using some options or something that I should be using? I'll
try to hack in a fix for now, but just thought I'd give a heads up.

Thanks,
Saikat
Reply all
Reply to author
Forward
0 new messages