Best solution to display PDFs embedded in the browser window

Do not post support requests, bug reports or feature requests. Discuss CEF here. Non-CEF related discussion goes in General Discussion!

Best solution to display PDFs embedded in the browser window

Postby kaiklimke » Tue Oct 29, 2013 4:55 am

Hi together,

currently I'm evaluating CEF3 as possible browser framework for an upcoming dev project.
One of the required features is, that we want to display PDFs embedded within the browser window.

For the evaluation of this task, I've installed Adobe Reader 11.0.0 and I'm using CEFClient as evaluation application (without any modifications on the code or in any configuration).
The "Plugin Info Test" displays, that "Adobe Acrobat NPAPI Plug-in, Version 11.0.0" is loaded but if I try to open a PDF file this fails with a "black page". (Hint: other plugins like Flash are working fine)

The only thing which appears, is a message box with the following content:
Adobe Reader cannot show documents in this browser.
We are sorry, but Adobe Reader is unable to show
documents in this browser configuration.

Please use your browser to download this file and
open it in Adobe Reader or Adobe Acrobat.

To avoid this message in the future, many browsers
provide a way to turn off certain add-ons, and some
are able to show this document natively. Please
contact your browser vendor for more details.


So, before I dive deeper into CEF3, here are my questions to the experts on this board:
  • Is it possible to use the Adobe Acrobat PlugIn for displaying PDFs within CEF3 at all?
  • If yes, did I missed something to configure / change within the CEFClient Code and if yes, what?
  • Do you know any good alternatives to the Adobe PlugIn which just works? (due its license, not the PDFViewer PlugIn bundled into Chrome)

My system setup:
Plattform: Mac OS X 10.7, 64-bit (later it should also work on Windows machines)
CEF 3 Version: binary build 3.1547_1412 (64-bit version)
IDE: XCode 4.6.3
PDF Viewer: Adobe Acrobat NPAPI Plug-in, Version 11.0.0


Thank you in advance for your efforts and kind regards,
doggy0815
kaiklimke
Techie
 
Posts: 19
Joined: Tue Oct 29, 2013 3:49 am

Re: Best solution to display PDFs embedded in the browser wi

Postby magreenblatt » Tue Oct 29, 2013 10:32 am

How did you install the Adobe Acrobat NPAPI Plug-in?
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: Best solution to display PDFs embedded in the browser wi

Postby kaiklimke » Wed Oct 30, 2013 12:28 am

The Plug-In comes with the Adobe Reader installer and goes into the systemwide plugin directory "/Library/Internet Plug-Ins/". Beside the NPAPI Plug-In Adobe installs a second one to this directory:

Code: Select all
$ ls -al /Library/Internet\ Plug-Ins

drwxr-xr-x  12 root  wheel   408 29 Okt 06:41 .
drwxrwxr-t+ 63 root  admin  2142 11 Dez  2012 ..
drwxr-xr-x   3 root  wheel   102 24 Sep  2012 AdobePDFViewer.plugin
drwxr-xr-x   3 root  wheel   102 24 Sep  2012 AdobePDFViewerNPAPI.plugin
[...]
kaiklimke
Techie
 
Posts: 19
Joined: Tue Oct 29, 2013 3:49 am


Return to CEF Discussion

Who is online

Users browsing this forum: No registered users and 160 guests