[reportlab-users] links to other pdfs ...

Jerome.ALET reportlab-users@reportlab.com
Wed, 23 Jun 2004 10:21:23 +0200


Selon Jesse David Andrews <Jesse@uky.edu>:

> I am  just starting to get to know reportlab, and it has been very good so
> far.  I am just having an issue creating "links" that either switch the
> current document or open another document in another adobe window.  Maybe I
> am not reading the manual correctly, but it appears that this functionality
> isn't there yet.  I don't really know PDF specs, but have programmed python
> and postscript before, so I might be able to impliment it if it currently
> doesn't exist (although hints about how to do it would be greatly
> appreciated)

The functionnality is there :

  yourcanvas.linkURL("http://server/yourdoc.pdf", rect, relative=0|1)

rect is a 4 elements tuple representing the clickable rectangle

relative can be set to either 1 or 0, and I currently don't remember
what its use is for.

hoping this helps

Jerome Alet