[reportlab-users] Report lab tables

Andy Robinson reportlab-users@reportlab.com
Mon, 4 Oct 2004 08:10:15 +0100

> There seems to be an Image class in platypus - why don't you try using
> that the same way you would use a Paragraph? Just add it to the list of
> elements, and build it into the document.


from reportlab.playpus import Image
i = Image('myfile.gif')

The Image object takes these arguments:
class Image(Flowable):
    def __init__(self, filename, width=None, height=None, kind='direct',
mask="auto", lazy=1):
        """If size to draw at not specified, get it from the image."""

This and most other flowables are covered int he test scripts.  Run
the suite, look at the PDF files in the temp directory with 'platypus'
in the name, then look at the scripts that made them if there's a
feature you want...

Good luck,