How to Enable Chrome’s Inbuilt PDF Plugin in Chromium #Ubuntu

by Dinu on 17/11/2010

Chrome Ubuntu

Chrome Ubuntu

There are many differences between Chromium and Chrome when it comes to the principles and licenses etc. But, from a user point of view, there are certain features that work only in Chrome and not on Chromium, the opensource version. But the good news is, we can get most of those things work on Chromium with a little tweaking.



read all the news about Chrome OS and CR 48 on Chromestory.com

If you are using Chromium on Ubuntu and wants it to play nice with the new Chrome inbuilt PDF viewer from Google, here is how to do it. ( I will post the windows version soon )

  • 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:
    (note/usr/lib/chromium-browser is valid for my Ubuntu PPA version, might be/opt/chromium-browser or 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

Hope this helps ! More tips on Chromium and Ubuntu versions are welcome ! and if you are asking me why should we use Chromium when Chrome is there .. hmm, there are situations where you have only Chromium, and not chrome. Like when I tried jolicloud recently …. I will write about that too soon ! .. remind me if I forget LOL !

Related : How to Use Google Chrome As Your Default PDF Reader on Windows

Via Azmo’s Weblog.

Related posts:

  1. Google Chrome and Ubuntu : I am waiting for that ! I am Google Chrome fan and you guys know that. Now, I am also a fan of Ubuntu too. I am blogging from a Ubuntu...
  2. How To Make Chromium To Play mp4 and h.264 Video #Ubuntu This is a follow up post to the post 4 Google Chrome Features That You Will Not See in Chromium and part of the series...
  3. Make Google Chrome Your Default PDF Viewer in Windows – Video Tutorial Looks like my friend here, Apruler2012 has started a new blog with Google Chrome tips. He has some interesting tips, with video tutorials. Good luck bro...

{ 27 comments… read them below or add one }

Dick November 21, 2010 at 5:12 pm

Hi, I managed to install the plugin properly and it shows up in about:plugins page. But on trying to view a pdf file, it give me a missing plugin. What could have possibly gone wrong?

Reply

floh November 21, 2010 at 5:32 pm

I’m having the same problem as Dick, the installation is no problem and on the plugin page the plugin is fully recognized but when opening a file it says “Missing plugin”.

Reply

chrome story November 21, 2010 at 8:05 pm

do you have all plugins enabled ? did you try restarting the computer ?

Reply

floh November 21, 2010 at 10:32 pm

I have enabled all plugins and restarted my computer, but it still doesn’t work. Maybe my version from chromium-daily/beta ppa is too old…

Reply

Griz November 23, 2010 at 8:06 pm

You can install gPDF for an extension for Chromium.

Reply

floh November 23, 2010 at 8:46 pm

I tried that, but for me personally the google docs online site is very slow in loading, so I wanted to use a local viewer. Maybe I manage to make evince load inside the chromium window…

Reply

Jacky Alcine November 24, 2010 at 4:36 am

This document avoids the need to use Google-based services or any web-based service in that manner. A native (plugin, to be accurate) support for this document viewing is very much necessary and handier if not reliant on a web source.

Reply

Noel December 1, 2010 at 12:41 am

Missing plugin…

Reply

Dick December 3, 2010 at 4:13 pm

Seems like everyone is getting the same problem.

Reply

Ricardo February 24, 2011 at 1:14 pm

Thanks. Really useful

Reply

matze February 26, 2011 at 6:58 pm

Thanks!
This is working with Chromium 11.0!
Very nice!

Reply

cristiano April 26, 2011 at 5:14 pm

note: replace
> sudo cp opt/google/chrome/libpdf.so /usr/lib/chromium-browser/
to
> sudo cp /opt/google/chrome/libpdf.so /usr/lib/chromium-browser/

Reply

Eugén Jung August 22, 2011 at 3:46 am

Actually, the first one was correct. When you extract data.tar.lzma, you are extracting into the *current directory*. For example /home/yourname/yourdownloads/somedirectory/opt/google/chrome/libpdf.so.

Reply

Luis April 30, 2011 at 2:57 pm

Same here… missing plugin

Reply

Eric June 11, 2011 at 1:04 am

Missing plugin………
Chromium 6.0.472.63 (59945) Debian 6.0.1

Reply

Júlio July 29, 2011 at 7:05 pm

Same here: “Missing plugin”
Chromium 12.0.742.112 (90304) Ubuntu 11.04 (64-bits)

Reply

nigeldodd August 30, 2011 at 4:03 pm

thanks Azmo. A good workaround for an unusual omission by Google.

Reply

fridolin September 18, 2011 at 10:28 pm

thanks for this article,
works fine with opensuse 11.4 and chromium 15.0.870.0 .

I only had to change the comandline to:
“sudo cp opt/google/chrome/libpdf.so /usr/lib64/chromium/”,
because I use a 64bit-system and opensuse has only a “chromium”-folder, without “-browser”.

Reply

Tim Lu October 3, 2011 at 3:59 am

Same: missing plug-in.
Chromium 12.0.742.112 Ubuntu 11.04

I installed the GoogleDocsPDFViewer ( http://www.chromeextensions.org/other/googledocspdfviewer/ ) and it works. Note: it is *not* plugin, just an extension that redirect to GoogleDocs. But at least I can see pdfs now.

Reply

ubuntu 11.04 November 24, 2011 at 4:25 pm

i get “no permission” error

Reply

ubuntu 11.04 November 24, 2011 at 4:24 pm

works well thanks

Reply

lawrence November 29, 2011 at 5:33 pm

works, ubuntu 11.10, chromium 15.0.874.106

Reply

DouO December 23, 2011 at 1:18 pm

not works,same:missing plug-in.
chromium 16.0.912.63 + Arch Linux(64 bit)
maybe it’s a 64bit issue

Reply

Treesong January 5, 2012 at 8:28 am

Have any of you tried testing out multiple sites to be sure it isn’t just a problem with the site you’re viewing? Here’s the problem I was encountering and how I fixed it.

I’m using Ubuntu 11.10 and Chromium 15.0.874.106. Before reading this article, I was having the same “missing plugin” problem. Following the above instructions didn’t fix the problem for the site I was trying to access. But it DID fix it for most sites. For example, this site didn’t used to work for me, and after following the instructions in this article, the PDF parts work:

http://www.planetpdf.com/mainpage.asp?webpageid=1682

But the original site I was trying to access still didn’t work!

Well, it turns out that the site I was trying to access was doing a very dumb thing. Rather than just trying to embed the PDF, it was checking to see if I had Adobe Reader. If I did, it used JavaScript to embed the PDF. If not, it displayed an error message without even trying to display the PDF or offering a link to it. So since I’m using Chrome PDF Viewer rather than Adobe Reader, that site will never work properly for me until they redesign it.

Anyway, just a thought. If you’re having trouble getting Chrome PDF Viewer to work properly, test it out on multiple sites. The site you’re trying to view PDFs on may just be poorly designed and refusing to show you the PDF because it doesn’t detect Adobe Reader.

Reply

Max January 12, 2012 at 8:17 pm

Do you run a 32bit or 64bit Ubuntu? I have exactly the same config (Ubuntu 11.10 64bit and Chromium 15.0.874.106) and still having the “missing plugin” error (and it’s NOT site-dependent: I tried on dozens of different websites). :(

Reply

kaendesmut February 1, 2012 at 3:21 am

Same problem here (missing plugin) chromium 16 kubuntu (11.10) 64-bit

Reply

frank February 4, 2012 at 12:49 am

The plugin works with google chrome (and not chromium), You can download the .deb file here: http://www.google.ch/chrome/index.html?hl=en

Reply

Leave a Comment

{ 5 trackbacks }

Previous post:

Next post: