Thanks for that link - I've bookmarked it for later.
The licencing issue we have though is that I believe our licence only allows us to create static PDFs so we currently have any Javascript that runs when the user is reading a PDF. It can only run while the PDF is being generated.