[reportlab-users] Clickable images

Jerome Alet reportlab-users@reportlab.com
Mon, 30 Jun 2003 11:10:26 +0200


On Mon, Jun 30, 2003 at 02:26:41PM +0530, Rajaraman .S wrote:
> 
> <html><div style='background-color:'><DIV>Hi!</DIV>

I don't think posting in HTML is good.

> <DIV>&nbsp;&nbsp;&nbsp; I am a newbie to reportlab. I was amazed to see what we could do with this very nice piece of software...However, I have quite a lot to learn still...</DIV>
> <DIV>I managed to generate a GIF image using the reportlab library...now I want some portion of that image to be clickable. That is I want to add a "onClick" handler to some portion of the gif image&nbsp;which then will execute a javascript function. Also I want a tooltip for some portion of the image.</DIV>
> <DIV>I really dont know if this is possible using report lab.</DIV>
> <DIV>Any help on this will be appreciable.</DIV>

from memory :

        canvas.linkURL("http://mysitcom", x, y, w, h, relative)
        
        relative = 1 or 0, depending on if you use absolute or relative
        coordinates
        
hth        

Jerome Alet