Links in pdf

Fabricio Silva <silva@...1918...> writes:

I wish I could save include links in exported pdf file. Tell me whether
it is possible to have a pdf file containing matplotlib plots on which I
could click to run actions, in the same manner that pdf files can
include clickable URL...

This is not possible with the current pdf backend. I imagine it would
not be too difficult to implement, but I am way too busy at work to do
it any time soon.

More specifically, I have a figure with a bunch of nicely-formatted
subplots and I embed this figure in a beamer presentation. I wish I
could play the associated sound when I click on one of the subplots in
Beamer (running a shell command).

Beamer comes with a package called multimedia, and I think it allows you
to achieve something much like this -- see the \sound and
\hyperlinksound macros. It might be difficult to make the hyperlink be
exactly some subplot, but perhaps you could use e.g. speaker icons as
link anchors and place them in suitable locations.

···

--
Jouni K. Seppänen

I have the second solution by now. But I hope I will succeed to make a
clickable area match to each subplot, probably using tikz to set the
size of the area.

···

Le samedi 28 novembre 2009 à 17:04 +0200, Jouni K. Seppänen a écrit :

> More specifically, I have a figure with a bunch of nicely-formatted
> subplots and I embed this figure in a beamer presentation. I wish I
> could play the associated sound when I click on one of the subplots in
> Beamer (running a shell command).

Beamer comes with a package called multimedia, and I think it allows you
to achieve something much like this -- see the \sound and
\hyperlinksound macros. It might be difficult to make the hyperlink be
exactly some subplot, but perhaps you could use e.g. speaker icons as
link anchors and place them in suitable locations.

--
Fabrice Silva
Laboratory of Mechanics and Acoustics (CNRS, UPR 7051)

Just a note when implementing this feature (I'm too busy at the moment as well) -- the SVG backend already supports hyperlinks, so if possible the PDF support should piggyback on its public API (get_url/set_url).

Mike

···

On 11/28/2009 11:09 AM, Fabricio Silva wrote:

Le samedi 28 novembre 2009 à 17:04 +0200, Jouni K. Seppänen a écrit :
   

More specifically, I have a figure with a bunch of nicely-formatted
subplots and I embed this figure in a beamer presentation. I wish I
could play the associated sound when I click on one of the subplots in
Beamer (running a shell command).
       

Beamer comes with a package called multimedia, and I think it allows you
to achieve something much like this -- see the \sound and
\hyperlinksound macros. It might be difficult to make the hyperlink be
exactly some subplot, but perhaps you could use e.g. speaker icons as
link anchors and place them in suitable locations.
     

I have the second solution by now. But I hope I will succeed to make a
clickable area match to each subplot, probably using tikz to set the
size of the area.