Re: .js file as Plug-in
Benjamin Smedberg <[email protected]> Mon, 24 Feb 2014 15:43:01 -0500
| Newsgroups | gmane.comp.mozilla.devel.plugins |
|---|---|
| Message-ID | <[email protected]> |
On 2/23/2014 7:03 AM, [email protected] wrote: > Hi, > I have a .js file which adds annotations to the PDF file that is rendered on the browser. > > I don't know how to use the .js file as a plug-in. Now I know how to include that file in <script> tags in the webpage but thats not i want. > > I want to be able to install the file as anyother plug-in. > > As soon as PDF is rendered the browser should invoke my .js file. How to do it?? Currently you'd have to do this as a Firefox extension the way pdf.js and shumway work currently. See https://bugzilla.mozilla.org/show_bug.cgi?id=558184 for jschoenick's work underway to make this easier and less fragile. --BDS