Topic: Howto open PDF files in chromium using acroread as external appl

This works with following packages:

chromium: 12.0.742.112~r90304-1 from testing
mozplugger: 1.14.3-3 from testing
acroread: 9.4.2-0.0 from debian-multimedia

How?
Install the 3 packages.
Then:

mkdir $HOME/.mozplugger
cp /etc/mozpluggerrc $HOME/.mozplugger/mozpluggerrc

Edit $HOME/.mozplugger/mozpluggerrc: change line 82 to

define(ACROREAD, [repeat needs_xembed swallow(acroread)  fill : acroread -openInNewWindow /a "$fragment" "$file"])

restart chromium
check mozplugger plugin:

about:plugins

in address area
verify that mozplugger is enabled:

MozPlugger 1.14.3 handles QuickTime and Windows Media Player Plugin
MozPlugger version 1.14.3, maintained by Louis Bavoil and Peter Leese, a fork of plugger written by Fredrik Hübinette.
For documentation on how to configure mozplugger, check the man page. (type man mozplugger)
Configuration file:    /home/jean/.mozplugger/mozpluggerrc
Helper binary:    mozplugger-helper
Controller binary:    mozplugger-controller
Link launcher binary:    mozplugger-linker
Debug file:    $HOME/tmp/mozdebug

Test it: click on a link to a PDF-file
Enjoy smile

If you poke the bear it is going to come after you.

Re: Howto open PDF files in chromium using acroread as external appl

Here is a minimal version of $HOME/.mozplugger/mozpluggerrc, that can still open pdf files in a separate tab in chromium:

###################
### m4 macros   ###
###################

changequote([,])

### Helpers

### Acrobat Reader
define(ACROREAD, [repeat needs_xembed swallow(acroread)  fill : acroread -openInNewWindow /a "$fragment" "$file"])


#######################
### Documents       ###
#######################

application/pdf:pdf:PDF file
application/x-pdf:pdf:PDF file
text/pdf:pdf:PDF file
text/x-pdf:pdf:PDF file
    ACROREAD()

enjoy smile

If you poke the bear it is going to come after you.

Re: Howto open PDF files in chromium using acroread as external appl

Hey, I'm having trouble getting this to work. Possibly because I don't have "testing" repo's to install chrome or mozplugger, is their any advice to get it to work using the older stable releases?

The issue I have is Chromium just displays a grey screen with "Missing Plug-in" whenever I click on a PDF

Re: Howto open PDF files in chromium using acroread as external appl

I am afraid it does not work with the chromium browser that comes with #!.
That version does not handle the embedding of acroread in chromium yet.
I do not know as of which version it does include the code.
You can always try to install a more recent version of chromium browser.
IIRC there are threads on this forum that explain how to do it.
The mozplugger version in stable #! is OK.

If you poke the bear it is going to come after you.

Re: Howto open PDF files in chromium using acroread as external appl

Thanks! I'll give it a try soon!

Re: Howto open PDF files in chromium using acroread as external appl

It works.

chromium 13.0.782.220
mozplugger 1.14.3-5
acroread 9.4.2-1
Debian wheezy/sid

Re: Howto open PDF files in chromium using acroread as external appl

Works in SRWare Iron 13.0.800.0 (based on Chromium-browser) - it also works for me in Firefox 7 & Opera 11.51

same Wheezy specs as above

Last edited by tradetaxfree (2011-09-28 22:09:11)

Re: Howto open PDF files in chromium using acroread as external appl

Thanks for the feedback.

If you poke the bear it is going to come after you.