MozillaZine

Built-in PDF viewer for SM

User Help for Seamonkey and Mozilla Suite
godzfire
 
Posts: 118
Joined: September 13th, 2009, 1:12 pm

Post Posted March 9th, 2018, 4:05 pm

Hello. How can I get PDFs to be displayed inside SeaMonkey like all the other browsers do? I tried downloading PDF Viewer (PDF.js) 2.0.426, and have it installed, but it doesn't seem to do anything. Is there something I'm doing wrong?

WaltS48

User avatar
 
Posts: 3741
Joined: May 7th, 2010, 9:38 am
Location: Pennsylvania, USA

Post Posted March 10th, 2018, 7:19 am

Version 1.6.304 of the extension works for me in my 2.49.2 on Linux.

Nothing shows up for PDF under Edit > Preferences > Browser > Helper Applications. So it is a mystery as to why it works. :?

Try version 1.9.426. https://mozilla.github.io/pdf.js/gettin ... /#download
Linux Desktop - AMD Athlon(tm) II X3 455 3.3GHz | 8.0GB RAM | GeForce GT 630
Windows Notebook - AMD A8 7410 2.2GHz | 6.0GB RAM | AMD Radeon R5

godzfire
 
Posts: 118
Joined: September 13th, 2009, 1:12 pm

Post Posted March 10th, 2018, 7:31 am

Stupid question time, how do I install this version? The other one was an xpi.

WaltS48

User avatar
 
Posts: 3741
Joined: May 7th, 2010, 9:38 am
Location: Pennsylvania, USA

Post Posted March 10th, 2018, 5:48 pm

Sorry, I did not notice that was a.zip file.

Where did you find 2.0.246?
Linux Desktop - AMD Athlon(tm) II X3 455 3.3GHz | 8.0GB RAM | GeForce GT 630
Windows Notebook - AMD A8 7410 2.2GHz | 6.0GB RAM | AMD Radeon R5

isaacschemm
 
Posts: 268
Joined: January 20th, 2015, 12:29 pm

Post Posted March 10th, 2018, 8:23 pm

Try this link (got it from the readme.md on the pdf.js git repo):
http://mozilla.github.io/pdf.js/extensions/firefox/pdf.js.xpi

therube

User avatar
 
Posts: 19109
Joined: March 10th, 2004, 9:59 pm
Location: Maryland USA

Post Posted March 12th, 2018, 5:16 pm

That installs, but then how to "associate" pdf with "SeaMonkey" such that clicking a .pdf link in SeaMonkey causes it to open (via pdf.js) in SeaMonkey?
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 Pinball CopyURL+ FetchTextURL FlashGot NoScript

WaltS48

User avatar
 
Posts: 3741
Joined: May 7th, 2010, 9:38 am
Location: Pennsylvania, USA

Post Posted March 13th, 2018, 7:21 am

What version of the extension does the above link provide?

I have version 1.6.304 installed and it works without any Helper Application appearing in my Preferences.

I'm a bit baffled by that behavior.

Test a few. https://duckduckgo.com/?q=PDF+Test&t=seamonkey&ia=web
Linux Desktop - AMD Athlon(tm) II X3 455 3.3GHz | 8.0GB RAM | GeForce GT 630
Windows Notebook - AMD A8 7410 2.2GHz | 6.0GB RAM | AMD Radeon R5

WaltS48

User avatar
 
Posts: 3741
Joined: May 7th, 2010, 9:38 am
Location: Pennsylvania, USA

Post Posted March 13th, 2018, 8:52 am

Answering my own question. It installs version 2.0.248.

However SeaMonkey does not have the Portable Document Format (PDF) Content Type in Helper Applications, that uses Preview in Firefox as the Action in Firefox.

Maybe you could try registering a protocol?

http://kb.mozillazine.org/Register_protocol

I have Acrobat Reader DC installed on Windows and SeaMonkey uses that for .pdf files.
Linux Desktop - AMD Athlon(tm) II X3 455 3.3GHz | 8.0GB RAM | GeForce GT 630
Windows Notebook - AMD A8 7410 2.2GHz | 6.0GB RAM | AMD Radeon R5

therube

User avatar
 
Posts: 19109
Joined: March 10th, 2004, 9:59 pm
Location: Maryland USA

Post Posted March 13th, 2018, 9:12 am

Above, is version 2.0.428.

Mc said "i've set pdf to "Always ask" and so it opens it with pdf.js", but on my end, I have no "PDF" in Helper Applications, only "Adobe Acrobat" (& setting that to Always ask doesn't help).
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 Pinball CopyURL+ FetchTextURL FlashGot NoScript

therube

User avatar
 
Posts: 19109
Joined: March 10th, 2004, 9:59 pm
Location: Maryland USA

Post Posted March 13th, 2018, 9:56 am

Another thread mentioned a version, 1.4.124, http://web.archive.org/web/201603041906 ... pdf.js.xpi & that looks to work.

As does this newer version, 1.9.641, http://web.archive.org/web/201710140351 ... pdf.js.xpi.
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 Pinball CopyURL+ FetchTextURL FlashGot NoScript

WaltS48

User avatar
 
Posts: 3741
Joined: May 7th, 2010, 9:38 am
Location: Pennsylvania, USA

Post Posted March 14th, 2018, 8:17 am

Okay, I just installed version 1.9.641 into my SeaMonkey on Windows.

Set both of my Adobe Acrobat Forms Document entries in Helper Applications to Always Ask. (That might not exist if a user doesn't have Adobe Reader DC installed on Windows)

Loaded the PDF test search results link from my previous posts. Clicked several test links and they all just open using the extension. SeaMonkey doesn't even ask.

EDIT: Reset the Helper Applications to "Use Adobe Acrobat (in SeaMonkey)", quit and restarted SeaMonkey. The PDF's still open using the pdf.js extension. When I open a link in a new tab I see "Loading" then "PDF.js Viewer" as the tab loads, then the PDF.

:? :? :?
Linux Desktop - AMD Athlon(tm) II X3 455 3.3GHz | 8.0GB RAM | GeForce GT 630
Windows Notebook - AMD A8 7410 2.2GHz | 6.0GB RAM | AMD Radeon R5

kmike
 
Posts: 114
Joined: November 4th, 2002, 10:54 pm

Post Posted March 14th, 2018, 1:22 pm

According to this Github issue, version 2.0.305 also works in Seamonkey:
https://github.com/mozilla/pdf.js/issue ... -371229576
However the linked .xpi is already gone.

isaacschemm
 
Posts: 268
Joined: January 20th, 2015, 12:29 pm

Post Posted March 14th, 2018, 2:10 pm

https://github.com/mozilla/pdf.js/commit/d1ffd610936f6bf45b7f69586bf80aae514106b0#diff-5860a38dad5b1c648cafaf4913d221c4

I think the last version that will work in SeaMonkey 2.49 is probably the one from just before this pull request was merged into the tree. At some point I'll try building the .xpi myself and see if it works. If it does, maybe I could submit it to AMO so people can get to it.

isaacschemm
 
Posts: 268
Joined: January 20th, 2015, 12:29 pm

Post Posted March 20th, 2018, 12:33 pm

I put together a version of pdf.js based on the last SeaMonkey-compatible version but with some additional patches cherry-picked. I'll probably keep updating it periodically as long as there are patches that apply cleanly.

https://addons.mozilla.org/en-US/seamonkey/addon/pdf-js-for-seamonkey/

therube

User avatar
 
Posts: 19109
Joined: March 10th, 2004, 9:59 pm
Location: Maryland USA

Post Posted March 22nd, 2018, 8:24 am

Thank you.
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 Pinball CopyURL+ FetchTextURL FlashGot NoScript

Return to SeaMonkey Support


Who is online

Users browsing this forum: No registered users and 4 guests