[reportlab-users] Image inside Paragraph not showing

yoshi teh.yosh at gmail.com
Mon Jan 11 20:18:35 EST 2010


I'm trying to display an image then write some text underneath it.
I tried to achieve this by using:

p0 = Paragraph("some text",style)
p1 = Paragraph("some more text",style)
p3 = Paragraph("some other text",style)
p3 = Paragraph('<img src="/home/bleh/public_html/img/iso.jpg" width="100"
height="55"/><br/>ATL-RTO/02',style)

data.append([p0,p1,p2,p3])

t=Table(data,colWidths =
[inch*1.65,inch*2.35,inch*2,inch*1.5],style=[('FONTNAME',(0,0),(-1,-1),'Helvetica'),
#('GRID',(0,0),(-1,-1),0.4,colors.black),
('VALIGN',(0,0),(-1,-1),'MIDDLE'),
('VALIGN',(3,0),(3,0),'BOTTOM'),
('ALIGN',(3,0),(3,0),'RIGHT')
])



Story.append(t)


then building the doctemplate and saving the PDF.

On one of my computers the PDF displays the images, on the other, it
doesn't. The software configuration is fairly similar, they both use Python
2.5.2 and reportlab 3418 2009-02-04.

The document throws no exception, the program doesn't crash, it just creates
the document without the image. Is there any way to try and pinpoint the
problem?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://two.pairlist.net/pipermail/reportlab-users/attachments/20100112/a459cbcb/attachment.html>


More information about the reportlab-users mailing list