First you need to download the needed files, in this case it is the official Chrome browser. You can get it by running the following, or downloading the .deb package directly at https://www.google.com/intl/en/chrome/browser/ and choosing 32 or 64bit Debian/Ubuntu package depending on whether you use a 64 or 32bit Linux OS.
You can also do the following from a terminal:
For 64Bit:
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
For 32Bit:
wget https://dl.google.com/linux/direct/google-chrome-stable_current_i386.deb
Extract the .deb package
What you just downloaded was a Debian package, you can see it as an “archive” like a .zip or .tar.gz, if that makes more sense to you.
You need to extract it, since the one file we need is hidden deep inside it.
Extract it by running the following in the terminal:
ar xv <filename of downloaded file>
Example:
ar xv google-chrome-stable_current_amd64.deb
This will get you 3 new files, in the same location as you first file. They are named the following:
control.tar.gz
data.tar.lzma
debian-binary
What we are interested in here is the data.tar.lzma
file, this is another “archive” and we also have to extract this, using the following command:
tar --lzma -xvf data.tar-lzma
This time you get some folder, with a lot of subfolders and files, the 3 top folder are named:
etc
opt
usr
In all this, we are only interested in 1 file, opt/google/chrome/libpdf.so
Copy the needed file to you Chromium install folder
copy it to your Chromium install folder using the “cp” command:
The folder might not be exactly the same for you, depending on your Chromium version and OS. but for me it’s /usr/lib/chromium/
and should be something like that for you, just type in “/usr/lib/chr” and press the TAB key on your keyboard to make it type the rest.
cp opt/google/chrome/libpdf.so /usr/lib/chromium/
When that’s done, close all your open Chromium browsers
Reopen Chromium and type the following in your address bar:
about:plugins
And make sure Chrome PDF Viewer
is checked