Google’s PDF Plugin is most excellent for most needs – and for anything else you can actually download the PDF and do whatever you want to do with it (sidenote though: printing would be really nice. Pretty please, Google?). Unfortunately, it only ships with the official Chrome version and is therefore not available in the Chromium editions most distributions ship or make available.
Therefore, to get and enable the plugin on your favorite local Chromium version:
- Download a Google Chrome release that matches your processor architecture (x86/x86_64):
# wget http://dl.google.com/linux/direct/google-chrome-unstable_current_i386.deb
# wget http://dl.google.com/linux/direct/google-chrome-unstable_current_amd64.deb
- extract the .deb:
# ar vx <previously downloaded .deb>
- extract the data payload:
# tar --lzma -xvf data.tar.lzma
- copy the plugin to destination folder:
/usr/lib/chromium-browseris valid for my Ubuntu PPA version, might be
/opt/chromium-browseror something on other distributions)
# sudo cp opt/google/chrome/libpdf.so /usr/lib/chromium-browser/
- restart any open Chromium processes
- check about:plugins for the
Chrome PDF Viewer, should not need any enabling
If you are like me and use the Radiance Theme on Ubuntu and the Chromium Browser, do yourself a favor and install the corresponding Chrome/Chromium Theme for it. Really blends in nicely. There is one for Ambiance, too.
… despite having the extra codecs from the PPA installed – a quick
sudo apt-get install ffmpeg
fixes that. FFMpeg (at least for me on 10.4 Beta) isn’t installed by default and is no dependency for Chromium.