Subj : Re: Javascript in PDFs To : Ronald Kent Gibson From : Igor Bukanov Date : Fri Mar 12 2004 09:38 am Ronald Kent Gibson wrote: > We will be reading the pdf's & converting them. > > Either to some propropietary format, or straight into some type of swing or > other java user interface object. > > So sometimes I envisage something like a flyweight pattern that groups a set > of javascript enabled swing objects. > > The problem with this idea is that the java script objects need to share > some sort of memory space. To further compound the problem is that acrobrat > also has defined a whole array of acrobat java script objects. Although that array may be huge, http://partners.adobe.com/asn/developer/pdfs/tn/5186AcroJS.pdf , it is nothing compared with DOM API or, say, http://msdn.microsoft.com/workshop/author/dhtml/reference/dhtml_reference_entry.asp .. Given that there are pure JavaScript browsers that more or less implement the later and the fact that many of host objects for JS in Adobe PDF related to to the full Adobe Acrobat, the task should not be that difficult. If you already have a PDF library that render PDF in Java which allows to manipulate PDF objects, then writing Rhino bindings should not take more then a month or so: Adobe documentation is reasonable. Regards, Igor .