[reportlab-users] Image inside paragraph not appearing
    Stevens, Ian 
    IStevens at globeandmail.com
       
    Thu Jan 24 16:19:58 EST 2008
    
    
  
I'm having trouble getting images to appear within a Paragraph when I use the <img/> tag:
      1 from reportlab.lib.styles import ParagraphStyle
      2 from reportlab.pdfgen.canvas import Canvas
      3 from reportlab.platypus import Paragraph, Frame
      4 
      5 c = Canvas('test.pdf')
      6 f = Frame(100, 700, 400, 100, showBoundary=True)
      7 f.addFromList([Paragraph('This is a test image: <img src="test.gif" height="5"/>. That was a test.', ParagraphStyle(None))], c)
      8 c.save()
Where test.gif is created with the following ImageMagick command:
    echo this is a test | convert -background yellow -page 200x50 text:- test.gif
The image will not display.  What am I missing?
thanks,
Ian.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://two.pairlist.net/pipermail/reportlab-users/attachments/20080124/466d476c/attachment.html>
    
    
More information about the reportlab-users
mailing list