LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 09-15-2012, 03:16 PM   #1
chexmix
Member
 
Registered: Apr 2002
Location: Arlington, MA
Distribution: Slackware, Debian, OpenBSD
Posts: 207
Blog Entries: 15

Rep: Reputation: 17
... curse of the black screen (viewing PDFs in Firefox) ...


Hi all -

[This is for Firefox 15.0.1 on a Slackware 13.37 laptop, with version 9.5 of the Adobe plugin].

I've done enough Googling to know that having the Adobe Reader plug-in kindasorta not work in Firefox, but instead serve up a black screen when dealing with a PDF instead of the actual content, has been seen many times -- for years, in fact.

It's biting me in the a** this weekend, especially because I am doing research and needing to read a bunch of PDFs ... preferably inline.

Here's what I have tried so far:

- First, I should note that the list of Content-types when I open Edit->Preferences->Applications in Firefox is distressingly short. PDF is not there. So ... it's not a matter of setting a handler in the Preferences dialogue.

- I read at one time (in an LQ thread if memory serves ) that one could open about:config and repoint the entries for

helpers.global_mime_types_file
helpers.private_mime_types_file

... to directories that actually exist. I did this, setting them to, respectively

/usr/share/mime/types
~/.local/share/mime/types

... but doing this did not, as I half expected it to, refresh and lengthen the list of Content-types in Preferences, even after a restart of Firefox.

(Plus -- why were these entries initially pointing to things that didn't exist?)

- I read somewhere else that someone could simply disable and re-enable the Firefox plug-in, and re-start. This seems to *work*, but the effect dies after a second restart of Firefox.

Is there any way to tell Firefox how to handle PDFs that will survive a simple restart of the application? I'd be grateful for any hints. I can certainly just read the things in the standalone Acrobat Reader but, well, "give me convenience or give me death."

Plus it's just irritating that I don't know why Firefox is behaving this way, and I would like to understand.

Thanks,

Glenn
 
Old 09-15-2012, 03:24 PM   #2
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware & Slackware64 14.1
Posts: 7,029
Blog Entries: 52

Rep: Reputation: Disabled
I'm using the pdf viewer add-on in firefox 15.0.1 with no problems. Try it?
https://addons.mozilla.org/en-US/firefox/addon/pdfjs/
 
1 members found this post helpful.
Old 09-15-2012, 03:37 PM   #3
chexmix
Member
 
Registered: Apr 2002
Location: Arlington, MA
Distribution: Slackware, Debian, OpenBSD
Posts: 207
Blog Entries: 15

Original Poster
Rep: Reputation: 17
Quote:
Originally Posted by brianL View Post
I'm using the pdf viewer add-on in firefox 15.0.1 with no problems. Try it?
https://addons.mozilla.org/en-US/firefox/addon/pdfjs/
D'oh! Completely forgot about that one. Thanks!
 
Old 09-15-2012, 04:21 PM   #4
mrclisdue
Senior Member
 
Registered: Dec 2005
Distribution: Slackware -current, 14.1
Posts: 1,046

Rep: Reputation: 170Reputation: 170
...as an addendum, if the plugin fails you can click on the download icon in the plugin's frame and you get the firefox download dialog to open xpdf, eg...a bit kludgy, but it works when the plugin doesn't.

cheers,
 
Old 09-15-2012, 04:22 PM   #5
kikinovak
Senior Member
 
Registered: Jun 2011
Location: Montpezat (South France)
Distribution: Slackware, Slackware64
Posts: 1,602

Rep: Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742
It's been years since I've last used the proprietary monster Adobe for viewing PDFs, because Okular (KDE) and recent versions of Evince (Xfce) do it perfectly, without all the bloat and spyware.
 
Old 09-15-2012, 05:11 PM   #6
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 5,257

Rep: Reputation: Disabled
The "pdfjs" PDF viewer is built-in in Firefox since 15.0, no need to install it additionally.

In "about:config" set "browser.preferences.inContent" to "true" and "pdfjs.disabled" to "false".
Furthermore, in "preferences > applications" search for extension "pdf" and make sure the associated action is set to "preview in firefox".

Eric
 
Old 09-15-2012, 05:29 PM   #7
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware & Slackware64 14.1
Posts: 7,029
Blog Entries: 52

Rep: Reputation: Disabled
Ah, I didn't know that. I installed it not long before 15.0 came out.
 
Old 09-15-2012, 08:50 PM   #8
zrdc28
Member
 
Registered: Dec 2007
Location: Alabama USA
Distribution: Slackware current
Posts: 249

Rep: Reputation: 40
I can not find one thing wrong with using okular for this it works everytime.
 
Old 09-16-2012, 08:30 AM   #9
enine
Member
 
Registered: Nov 2003
Distribution: Slackware 14.1
Posts: 790
Blog Entries: 3

Rep: Reputation: 84
How do you get that add on to work, I've installed and am running 15.0.1 and it says "Not available for Firefox 4.0b9/"

Or how do you get Okular to work inside a FF window. I have an HP AIO which has the internal web page for scanning and it opens Adobe in small window but I have to close the browser window after each scan to kill the adobe process before it will open again.
 
Old 09-16-2012, 08:51 AM   #10
ruario
Senior Member
 
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 1,840

Rep: Reputation: 846Reputation: 846Reputation: 846Reputation: 846Reputation: 846Reputation: 846Reputation: 846
To use Okular within the browser install the parts plugin or mozplugger. Your choice.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Adobe reader, problem in viewing pdfs inside Firefox 3 johnmargaritopoulos Linux - Newbie 3 07-31-2008 01:51 PM
Firefox + totem + gstreamer = black screen chrism01 Fedora 2 07-18-2008 04:09 AM
Black Screen on mozilla firefox and other windows ljtigre Mandriva 1 08-28-2007 01:18 PM
Black Screen on mozilla firefox and other windows ljtigre Linux - Newbie 3 08-28-2007 12:26 PM


All times are GMT -5. The time now is 09:10 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration