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!
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.
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”.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With