2011年2月19日 星期六

Open PDF files inside Chromium

Google Chrome can use a native PDF plugin to open PDF file inside Chrome, but Chromium can't. I use an extension to open PDF file via Google Docs. Yesterday, I found there is an easy way to open PDF file inside Chromium on Linux.

First, download Google Chrome from official web site.
Download page
Direct download link
Exact libpdf.so from:
google-chrome-stable_current_i386.deb/data.tar.lzma/./opt/google/chrome/
Copy libpdf.so to /use/lib/chromium/
$ sudo cp libpdf.so /usr/lib/chromium/
Restart Chromium and enjoy.

If you don't want do this manually, just install chromium-stable-libpdf from AUR.
$ yaourt -S chromium-stable-libpdf