Chrome Is What You Make Of It

Chrome PDF Plugin in Ubuntu – How To Enable

howto  Chrome PDF Plugin in Ubuntu   How To Enable

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.

42 Responses to “Chrome PDF Plugin in Ubuntu – How To Enable”

  1. Dick

    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
  2. floh

    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
      • floh

        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
  3. Griz

    You can install gPDF for an extension for Chromium.

    Reply
    • floh

      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

      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
  4. matze

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

    Reply
  5. cristiano

    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

      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
  6. Júlio

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

    Reply
  7. nigeldodd

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

    Reply
  8. fridolin

    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
  9. DouO

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

    Reply
  10. Treesong

    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
  11. Max

    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
  12. kaendesmut

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

    Reply
  13. Max

    Just tried that and no luck: still missing plugin :(

    Chromium 17.0.963.65 (Developer Build 124586 Linux) Ubuntu 11.10

    Reply
  14. Max

    I suppose you’re all on Ubuntu 32bits and used the i386.deb? Can someone else and give feedback with 64bits?

    Reply
  15. anon

    Same results as everyone else, on Ubuntu amd64 – unstable results in “missing plugin” error, and anon comment from march 10 2012 instructing to use stable instead works fine

    Reply
  16. Max

    OK my mistake, it’s working fine now, must have done something wrong the first time. Sorry for the trouble, and thanks for the fix!

    Reply
  17. Veronica

    mmm i have tried the fix above downloaded both version but it’s not working. I have Ubuntu 11.10 64bit and Chromium 17.0.963.79 (Developer Build 125985 Linux) Ubuntu 11.10
    Is there any workaround about this? How did 64bit users above got it working?
    Help!

    Thanks in advance!

    Reply
  18. josh

    worked with the stable chrome 32bit.deb on ubuntu 11.10 using chromium 18.0.997.0

    xxx

    Reply