[reportlab-users] Clickable images

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

On Mon, Jun 30, 2003 at 11:10:26AM +0200, Jerome Alet wrote:
> 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)

sorry I typed too fast

        canvas.linkURL("http://mysite.com/myjavascript.js", ...)
NB : the js will be executed in the web browser, not in Acrobat Reader        


Jerome Alet