Built-in PDF viewer for SM

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

Built-in PDF viewer for SM

Post by godzfire »

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?
User avatar
WaltS48
Posts: 5141
Joined: May 7th, 2010, 9:38 am
Location: Pennsylvania, USA

Re: Built-in PDF viewer for SM

Post by WaltS48 »

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: 153
Joined: September 13th, 2009, 1:12 pm

Re: Built-in PDF viewer for SM

Post by godzfire »

Stupid question time, how do I install this version? The other one was an xpi.
User avatar
WaltS48
Posts: 5141
Joined: May 7th, 2010, 9:38 am
Location: Pennsylvania, USA

Re: Built-in PDF viewer for SM

Post by WaltS48 »

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: 270
Joined: January 20th, 2015, 12:29 pm

Re: Built-in PDF viewer for SM

Post by isaacschemm »

Try this link (got it from the readme.md on the pdf.js git repo):
http://mozilla.github.io/pdf.js/extensi ... pdf.js.xpi
User avatar
therube
Posts: 21703
Joined: March 10th, 2004, 9:59 pm
Location: Maryland USA

Re: Built-in PDF viewer for SM

Post by therube »

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?
Fire 750, bring back 250.
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
User avatar
WaltS48
Posts: 5141
Joined: May 7th, 2010, 9:38 am
Location: Pennsylvania, USA

Re: Built-in PDF viewer for SM

Post by WaltS48 »

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
User avatar
WaltS48
Posts: 5141
Joined: May 7th, 2010, 9:38 am
Location: Pennsylvania, USA

Re: Built-in PDF viewer for SM

Post by WaltS48 »

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
User avatar
therube
Posts: 21703
Joined: March 10th, 2004, 9:59 pm
Location: Maryland USA

Re: Built-in PDF viewer for SM

Post by therube »

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).
Fire 750, bring back 250.
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
User avatar
therube
Posts: 21703
Joined: March 10th, 2004, 9:59 pm
Location: Maryland USA

Re: Built-in PDF viewer for SM

Post by therube »

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.
Fire 750, bring back 250.
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
User avatar
WaltS48
Posts: 5141
Joined: May 7th, 2010, 9:38 am
Location: Pennsylvania, USA

Re: Built-in PDF viewer for SM

Post by WaltS48 »

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: 124
Joined: November 4th, 2002, 10:54 pm

Re: Built-in PDF viewer for SM

Post by kmike »

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: 270
Joined: January 20th, 2015, 12:29 pm

Re: Built-in PDF viewer for SM

Post by isaacschemm »

https://github.com/mozilla/pdf.js/commi ... 4913d221c4

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: 270
Joined: January 20th, 2015, 12:29 pm

Re: Built-in PDF viewer for SM

Post by isaacschemm »

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/seamon ... seamonkey/
User avatar
therube
Posts: 21703
Joined: March 10th, 2004, 9:59 pm
Location: Maryland USA

Re: Built-in PDF viewer for SM

Post by therube »

Thank you.
Fire 750, bring back 250.
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
Post Reply