lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: PDF links to javascript?


From: Mike Blackstock
Subject: Re: PDF links to javascript?
Date: Thu, 16 Jan 2014 20:00:29 -0500

Hi Phil!

Re.  Why do you want to do this?

My source code editor is a _javascript_ app that runs in the browser - "Code Mirror". For compilation, the source code is sent to a server over a node.js/socket.io websocket; when compilation is complete, server sends browser a signal and PDF is opened in iframe. I need 'point-and-click' events to call _javascript_ functions.

Thanks for responding and thanks for any help you can offer!


On Thu, Jan 16, 2014 at 4:40 PM, Phil Holmes <address@hidden> wrote:
Why do you want to do this?  Operating system?

--
Phil Holmes
 
 
----- Original Message -----
Sent: Thursday, January 16, 2014 9:34 PM
Subject: PDF links to _javascript_?

Is there a way to change the "textedit://uri"  mechanism in PDF point-and-lick links to point instead to a _javascript_ function in the webbrowser?

textedit:///path/guitar.ly:42:32:39

would instead be something like:
_javascript_:parent.handlePdfLinks("path/guitar.ly:42:32:39")

and the above would be executed on a click?

I've been looking around, but I know zilch about PDF documents; the closest
I got was this, which tells me it's do-able (I think)

http://stackoverflow.com/questions/5934211/getting-notified-when-the-user-clicks-a-link-in-an-embedded-pdf/5942729#5942729

Cheers,
Mike


_______________________________________________
lilypond-user mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/lilypond-user



reply via email to

[Prev in Thread] Current Thread [Next in Thread]