[Okular-devel] Okular firefox plugin

Jeremy Sanders jeremy at jeremysanders.net
Wed May 12 22:17:49 CEST 2010

On Wed, 12 May 2010, Jeremy Sanders wrote:

> I've had some success writing a Firefox plugin to display PDFs using 
> Nokia's qtbrowserplugin and embedding Okular as a KPart. It appears to 
> mostly just work with little code.

I've overcome my problems I think by reading the docs. Please have a look 
at my code here for the firefox okular plugin:


Comments are welcome!

There's one big hack in the code which is to set the active window on 
mouse enter events. This is required otherwise the plugin loses keyboard 
events if firefox opens new windows.

The plugin should also work with opera.



Jeremy Sanders <jeremy at jeremysanders.net>
http://www.jeremysanders.net/                Cambridge, UK
Public Key Server PGP Key ID: E1AAE053

More information about the Okular-devel mailing list