2
votes

I've to display 3D PDF in browser and few browsers doesn't support 3D PDF like Chrome, Firefox, Mobile browser.

How can we detect / update the default PDF viewer plugin in Chrome & Firefox through code?

Can detect Adobe Reader plugins for all the browser as well using this code.

My query is I want to disable the default PDF viewer plugin and enable Adobe Reader plugin through code [javascript]. Is there any possible solution for this?

2
The linked duplicate contains a reply from someone from the Chromium team, the answer for Firefox is similar. Besides, not everyone has Adobe installed. Feature request for 3D PDFs in PDF.js (Firefox's PDF reader) is here: github.com/mozilla/pdf.js/issues/3254Rob W
You can view 3D PDF in Chrome as well as in Firefox by making few updates of the addons. Will update description in my question soon but wanted to know how to make those addons changes programatically.Nirav Mehta
The solutions you've highlighted are more for users. You cannot change these settings through your web app. Don't force Adobe Reader upon your users. At most show a warning that the PDF might not display properly because Adobe reader is not detected. There might be a chance that the user has a PDF reader that is capable of viewing U3D objects, and locking these out would not be so nice.Rob W
Agreed. But initially when I posted this question, you mentioned that it is not at possible to view 3D PDF in Chrome and Firefox and even everywhere on web and stack overflow it has been mentioned that 3D PDF can't be viewed in Chrome & Firefox. But after long research, I found that it is possible to view 3D PDF in Chrome & Firefox and still looking for the solutions for same. But yes I found temporary solution that if PDF is not loaded [using adobe reader] in firefox or chrome, system will display a message which will lead to a page on which we've displayed help / tutorial.Nirav Mehta
So it's not duplicate question. And better if you remove duplicate flag on this question. Because this question or solution is not there on stack overflow anywhere and not at least in this thread you mentioned stackoverflow.com/questions/9615751/…Nirav Mehta

2 Answers

1
votes

I've got work around to display 3D PDF in Chrome but disabling the default PDF Viewer plugins and enabling the Adobe Reader plugins from chrome://plugins/ in chrome browser.

Chrome Plugins Settings:

Chrome Plugins Settings

Firefox Plugins Settings: Firefox Plugins Settings

But still looking for this settings to be updated from code.

0
votes

Since Google has disabled the NPAPI support, therefore, Adobe reader cannot be configured to view PDF file within Chrome and many other modern browsers. See link below:

https://helpx.adobe.com/acrobat/kb/change-in-support-for-acrobat-and-reader-plug-ins-in-modern-web-.html