How To Open PDF Files Inside Chromium?

Sankar V picture Sankar V · Feb 25, 2013 · Viewed 25.3k times · Source

I'm using nodejs and chromium for my desktop app. The problem is that I can't open pdf files in chromium. So I googled and found that most of the answers are related to mozplugger plugin. I installed the plugin as mentioned in the below link:

http://www.tootips.com/2013/01/how-to-open-pdf-files-inside-chromium.html

Now I'm getting an error message : "Mozplugger: M4 parsing of config generated error" when I try to open pdf file in chromium. How can I resolve this error?

Please help me!

Answer

redbmk picture redbmk · Feb 26, 2013

If you look at this Ask Ubunutu question you'll see you can actually use Chrome's PDF viewer with Chromium.

Chrome has a nice PDF plugin that lets you open in the page, but it's not open source so it's not included with Chromium. You could install Chrome and symlink the plugin, then whenever you update Chrome you would also get that updated in Chromium. Alternatively, you could copy the plugin over to Chromium, and uninstall Chrome, but you won't receive updates that way.