SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 2011-08-05 14:28:03

xaos52
The Good Doctor
From: Planet of the @s
Registered: 2011-06-24
Posts: 4,602

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

Offline

Help fund CrunchBang, donate to the project!

#2 2011-08-06 12:02:06

xaos52
The Good Doctor
From: Planet of the @s
Registered: 2011-06-24
Posts: 4,602

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

Offline

#3 2011-09-20 04:38:19

acook
New Member
Registered: 2011-09-13
Posts: 6

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

Offline

#4 2011-09-23 14:50:12

xaos52
The Good Doctor
From: Planet of the @s
Registered: 2011-06-24
Posts: 4,602

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.

Offline

#5 2011-09-24 01:44:40

acook
New Member
Registered: 2011-09-13
Posts: 6

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

Thanks! I'll give it a try soon!

Offline

#6 2011-09-25 18:18:19

pfh
#! CrunchBanger
Registered: 2011-03-09
Posts: 189

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

Offline

#7 2011-09-28 21:25:59

tradetaxfree
#! CrunchBanger
Registered: 2011-03-05
Posts: 126

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)

Offline

#8 2011-09-29 07:36:35

xaos52
The Good Doctor
From: Planet of the @s
Registered: 2011-06-24
Posts: 4,602

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

Thanks for the feedback.

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.
Server: acrobat

Debian Logo