Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

JavaScript-API to detect if pdf.js is enabled in Firefox?

602 views
Skip to first unread message

uja...@gmail.com

unread,
Feb 11, 2013, 3:44:38 PM2/11/13
to
Not sure if this is the right place to ask, but anyway:

Is there a way for a web page (probably through JavaScript) to detect if the pdf.js plugin is enabled in Firefox?

FF19 will, as far as I know, enable the plugin by default, but the user can change that with an about:config setting. You cannot, of course, check the about:config settings using JavaScript and the pdf.js plugins doesn't seem to appear in the navigator.plugins object, whether enabled or not.

Background: An application that relies on PDF Forms (which are not supported by pdf.js if I understand that right, https://github.com/mozilla/pdf.js/issues/1459) sadly needs the Adobe Reader plugin enabled and the pdf.js plugin disabled. So the application should be able to display some hint or warning to the user, depending on whether if pdf.js is enabled or not.

Thanks, Jay

Julian Viereck

unread,
Feb 12, 2013, 4:16:08 AM2/12/13
to uja...@gmail.com, dev-p...@lists.mozilla.org
Jay,

thanks a lot for your email!

> Is there a way for a web page (probably through JavaScript) to detect if the pdf.js plugin is enabled in Firefox?

AFAIKT not at the moment - I've opened a bug on bugzilla:
https://bugzilla.mozilla.org/show_bug.cgi?id=840439

I've also added some comments on GitHub/Bugzilla to enable Form Support
now that printing has landed:

- https://github.com/mozilla/pdf.js/issues/1459#issuecomment-13422830
- https://bugzilla.mozilla.org/show_bug.cgi?id=739043

I cannot tell you if the bugs are fixed before shipping Firefox 19 and
if that's still the plan to have PDF.JS enabled by default :/

Best,

Julian
> _______________________________________________
> dev-pdf-js mailing list
> dev-p...@lists.mozilla.org
> https://lists.mozilla.org/listinfo/dev-pdf-js

uja...@gmail.com

unread,
Feb 13, 2013, 3:49:38 AM2/13/13
to
Julian, thanks. –Jay
0 new messages