Discussion:
.js file as Plug-in
a***@gmail.com
2014-02-23 12:03:38 UTC
Permalink
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??

Some one please provide me an insight.
Benjamin Smedberg
2014-02-24 20:43:01 UTC
Permalink
Post by a***@gmail.com
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

Loading...