Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How To Open PDF Files Inside Chromium?

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!

like image 784
Sankar V Avatar asked Feb 25 '13 13:02

Sankar V


People also ask

Does Chrome have a built in PDF viewer?

The following controls are available in the lower-right area of the browser window: If you've disabled the built-in PDF viewer, Chrome will use Adobe Acrobat or Adobe Reader to display PDF files.

Why PDF files are not opening in Chrome?

Open Chrome Settings. Click on ''Site settings''. Click on the ”Advanced” button at the bottom. Click on the toggle switch of the heading ”Download PDF files instead of automatically opening them”.


2 Answers

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.

like image 88
redbmk Avatar answered Sep 23 '22 20:09

redbmk


Have you tried using PDFjs as a totally javascript based alternative solution?

https://github.com/mozilla/pdf.js

It is relatively new but works on many different examples, maybe it is good enough for your application.

like image 33
sihorton Avatar answered Sep 20 '22 20:09

sihorton