Viewing PDFs in the browser?

Users and developers helping users with generic and technical Pale Moon issues on all operating systems.
Please direct questions that are Mac or Linux-specific (dealing with installation and OS integration) to the appropriate Linux or Mac board.

Moderator: trava90

Forum rules
This board is for technical/general usage questions and troubleshooting for the Pale Moon browser only. The main focus here is on Pale Moon on Windows. Please direct your questions that are specific for Linux and Mac to the dedicated boards for those operating systems.
Technical issues and questions not related to the Pale Moon browser should be posted in other boards!
Please keep off-topic and general discussion out of this board, thank you!
trparky

Viewing PDFs in the browser?

Post by trparky » 2012-09-01, 17:33

Any suggestions on how to view PDFs in the browser window? Specifically in Palemoon 15 64-bit.

megaman

Re: Viewing PDFs in the browser?

Post by megaman » 2012-09-01, 17:49

I will try the X64, but you can go to the URL bar and type "about:config" without quotes.
In about:config, type in "pdf" and find "pdfjs.disabled" make it false by double-clicking on the string name. (No quotation symbols)

sIDcORK
Fanatic
Fanatic
Posts: 231
Joined: 2012-07-17, 22:27
Location: UK

Re: Viewing PDFs in the browser?

Post by sIDcORK » 2012-09-01, 18:39

gpdf http://blog.arpitnext.com/gpdf Works for me in PM64.

megaman

Re: Viewing PDFs in the browser?

Post by megaman » 2012-09-01, 22:26

sIDcORK wrote:gpdf http://blog.arpitnext.com/gpdf Works for me in PM64.
Good alternative, and it is not contradicting at all, since the user still sees the document in the browser. My option was as a built-in, rather "plug-in"-like alternative. Then again, the first time the internal PDF reader showed up it was as an add-on.

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 29249
Joined: 2011-08-28, 17:27
Location: Tranås, SE
Contact:

Re: Viewing PDFs in the browser?

Post by Moonchild » 2012-09-03, 09:53

The internal PDF reader (pdf.js) is not recommended, even if the code is present in the Pale Moon browser. There are a number of known issues with it. Use it at your own peril.
"Son, in life you do not fight battles because you expect to win, you fight them merely because they need to be fought." -- Snagglepuss
Image

aphanic

Re: Viewing PDFs in the browser?

Post by aphanic » 2012-09-05, 09:42

I'm using SumatraPDF as my PDF reader which ships with a browser plugin too. Officially there's only a 32-bit build of it but you can find nightly 64-bit builds here, which are the ones I use; or a 64-bit build of the current stable version here.

vayth

Re: Viewing PDFs in the browser?

Post by vayth » 2012-10-12, 00:42

I thought the code is removed completely in PM 15 release notes? never thought it's still there..

and so.. I'm trying to turn pdfjs.disabled to false, but what does it do?
still can't view pdf in browser, whether it's true or false. Unless I use the original pdf.js addon..

I prefer use my standalone reader, but sometimes, in a rare case, Foxit becomes not responding for a while when opening a file. I just thought I want an alternative.

dark_moon

Re: Viewing PDFs in the browser?

Post by dark_moon » 2012-10-12, 06:47

Then take a look at SumatraPDF. This is faster then Foxit and runs all the time, without any problems.

# http://blog.kowalczyk.info/software/sum ... eader.html

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 29249
Joined: 2011-08-28, 17:27
Location: Tranås, SE
Contact:

Re: Viewing PDFs in the browser?

Post by Moonchild » 2012-10-12, 07:46

vayth wrote:I thought the code is removed completely in PM 15 release notes? never thought it's still there..

and so.. I'm trying to turn pdfjs.disabled to false, but what does it do?
still can't view pdf in browser, whether it's true or false. Unless I use the original pdf.js addon..
It's installed in Pale Moon, but completely disabled so it doesn't take resources. For emergencies it's still available, because it is simply convenient if you don't have access to a proper reader.

You have to set pdfjs.disabled to false and set pdfjs.firstRun to true, then exit and restart the browser.
(note, the firstRun preference will automatically be reset to false upon restart, it's an initialization flag)

You can then select the preferred viewer from the "applications" category, if it's not already set.
"Son, in life you do not fight battles because you expect to win, you fight them merely because they need to be fought." -- Snagglepuss
Image

slacky

Re: Viewing PDFs in the browser?

Post by slacky » 2012-10-14, 17:15

sIDcORK wrote:gpdf http://blog.arpitnext.com/gpdf Works for me in PM64.
I use http://www.tracker-software.com/product/pdf-xchange-viewer for 64 bit (despite the look on the web page, it's actually free). It has a Firefox Plugin that works with Palemoon too. But IMHO, it's not 'lightweight'. But it is feature-rich.

User avatar
back2themoon
Board Warrior
Board Warrior
Posts: 1865
Joined: 2012-08-19, 20:32

Re: Viewing PDFs in the browser?

Post by back2themoon » 2012-10-16, 21:13

I used to have the habit of watching PDF's within the browser (Firefox then) in the past... it has only caused me problems (crashes, slowdowns etc.). Sumatra PDF is extremely fast and works perfectly.

User avatar
back2themoon
Board Warrior
Board Warrior
Posts: 1865
Joined: 2012-08-19, 20:32

Re: Viewing PDFs in the browser?

Post by back2themoon » 2012-10-23, 23:40

I noticed Pale Moon (I'm on PM x86 atm) will not fully display this page, which seems to contain an embedded Google docs/pdf document window. Is this normal behaviour? Also tried switching both aforementioned about:config options. IE displays it correctly (I don't have PDF applications/plugins on this PC, except for Sumatra PDF).

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 29249
Joined: 2011-08-28, 17:27
Location: Tranås, SE
Contact:

Re: Viewing PDFs in the browser?

Post by Moonchild » 2012-10-23, 23:56

Works fine for me - it's an embedded Google-supplied PDF viewer (probably based on the javascript version) unrelated to anything you may have installed locally.
"Son, in life you do not fight battles because you expect to win, you fight them merely because they need to be fought." -- Snagglepuss
Image

User avatar
back2themoon
Board Warrior
Board Warrior
Posts: 1865
Joined: 2012-08-19, 20:32

Re: Viewing PDFs in the browser?

Post by back2themoon » 2012-10-24, 08:52

I get an empty box (all add-ons disabled). I'll check with the security software again...

lyceus

Re: Viewing PDFs in the browser?

Post by lyceus » 2012-10-25, 00:33

In other news, Adobe had released Acrobat 11.0 but I really don't want to "upgrade" and I'll stick to 9.5.2 until I see how it goes with the new group of security flaws and bugs. I would like to use another reader but so far only Acrobat seems to handle digital signatures (create, modify, delete) which is one thing not found in other suites.

User avatar
back2themoon
Board Warrior
Board Warrior
Posts: 1865
Joined: 2012-08-19, 20:32

Re: Viewing PDFs in the browser?

Post by back2themoon » 2012-10-25, 16:36

Moonchild wrote:Works fine for me - it's an embedded Google-supplied PDF viewer (probably based on the javascript version) unrelated to anything you may have installed locally.
Strange, I can't get it to work on my x86 PC. Uninstalled security software, disabled add-ons and installed Java just in case. PM64 displays it fine.

dark_moon

Re: Viewing PDFs in the browser?

Post by dark_moon » 2012-10-25, 17:02

Do you try the safemode?

User avatar
back2themoon
Board Warrior
Board Warrior
Posts: 1865
Joined: 2012-08-19, 20:32

Re: Viewing PDFs in the browser?

Post by back2themoon » 2012-10-25, 17:14

dark_moon wrote:Do you try the safemode?
Yes, I meant the safemode ("all add-ons disabled"). Maybe this thing looks for something from Adobe installed? Can't think of something else.

update: it now works, probably security-software related issue.

followingsun

Re: Viewing PDFs in the browser?

Post by followingsun » 2013-07-19, 07:56

Hi, I think my PM64 does not open PDF files. I'm using 20.2.1 version.
I have Adobe installed, but I prefer to open it directly on my browser. I put pdfjs.disabled to false, but it doesn't open my PDF. What can I do?

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 29249
Joined: 2011-08-28, 17:27
Location: Tranås, SE
Contact:

Re: Viewing PDFs in the browser?

Post by Moonchild » 2013-07-19, 08:27

Set pdfjs.disabled to false, set pdfjs.firstRun to true, then completely exit and restart Pale Moon.
Potentially, you may also have to check "applications" in Pale Moon's preferences to make sure the PDF files are set to "preview in Pale Moon"
be aware that the internal PDF viewer is extremely limited and very much hit&miss as far as being able to render files goes. No support is given by me on actual features or lack thereof of the js viewer.
"Son, in life you do not fight battles because you expect to win, you fight them merely because they need to be fought." -- Snagglepuss
Image

Locked