Remowe plugin Chrome PDF viewver

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

Remowe plugin Chrome PDF viewver

Postby Christophe » Thu Jul 02, 2015 9:45 am

Hello,

I would like to deactivate/remove Chrome PDF Viewer. I use CefForceWebPluginShutdown in OnAfterCreated in client_handler.cpp, but it doesn't work.
Code: Select all
CefString lPath = "E:\\Output\\pdf.dll";
   CefForceWebPluginShutdown(lPath);
   CefRefreshWebPlugins();


Thanks for your help :D
Christophe
Newbie
 
Posts: 6
Joined: Wed Apr 22, 2015 9:18 am

Re: Remowe plugin Chrome PDF viewver

Postby amaitland » Thu Jul 02, 2015 8:19 pm

You'll likely need CefUnregisterInternalWebPlugin as the PDF dll is considered an internal one.

apidocs3/projects/%28default%29/%28_globals%29.html#CefUnregisterInternalWebPlugin%28constCefString&%29

Important to note
This may be undone the next time CefRefreshWebPlugins() is called
Maintainer of the CefSharp project.
amaitland
Virtuoso
 
Posts: 1292
Joined: Wed Jan 14, 2015 2:35 am

Re: Remowe plugin Chrome PDF viewver

Postby Christophe » Fri Jul 03, 2015 1:55 am

Thank you very much! It's better ! :)

The note is important ^^

Good day! :)
Christophe
Newbie
 
Posts: 6
Joined: Wed Apr 22, 2015 9:18 am

Re: Remowe plugin Chrome PDF viewver

Postby magreenblatt » Mon Jul 06, 2015 12:30 pm

You can also use CefRequestHandler::OnBeforePluginLoad to deny the load on a per-request basis.
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm


Return to Support Forum

Who is online

Users browsing this forum: No registered users and 69 guests

cron