Live data from Hacker News

Firefox introduces PDF viewer

blog.mozilla.org

191–200 of 200 posts

Re: Firefox introduces PDF viewer

#191

Earlier quoted context omitted.

I believe the security feature is the ability to disable Javascript code that is included within the pdf file. A pdf reader implemented in Javascript is perfectly capable of doing that.

Not only that, but being able to render via js would (and thus avoid calling out to any plugin code) would be able to take advantage of sandboxing too I imagine.

How do you evaluate the PDF's JavaScript in an interpreter that is distinct from the renderer's?

Re: Firefox introduces PDF viewer

#192

Dumb question: What's to stop Chrome from eventually adopting PDF.js? Personally, I see that as the future. Its open source, its "good enough", and Google doesn't have to license the pdf viewer anymore. Also it's a big coup against Adobe, when everyone with firefox and chrome can pretty much uninstall your Adobe Reader software. I haven't even mentioned shrinking the market on 3rd party PDF viewers.

That depends on whether they think it mathes the native implementation in compatibility, performance, and price.

My hope is that they wouldn't replace the current implementation simply because the JS implementation is free, and the JS implementation is never going to be as fast as an effecient native implementation, and its always going to be more difficult to write.

Re: Firefox introduces PDF viewer

#193
This is really amazing, but I wish these two browsers would be pushing for a FOSS version of PDF instead.

I do not think openXPS is entirely FOSS but it is a good place to start looking for an alternative.

Here is an xps file on the web to see how your browser handles it: http://www.rosebudschooldist.com/images/Feb%20Cal%202013.xps

Re: Firefox introduces PDF viewer

#194

Earlier quoted context omitted.

If you're in the US, you may not notice it, but Bing is plain awful for international users. Google has spent a considerable amount of resources improving their engine to serve results based on your location and Google's Search Engine is clearly the best by a long shot. This is also why I'm not using DuckDuckGo.

Agreed. If Bing could match google's accuracy in scholar paper/reference searching I'd not mind to use it.

Bing on the other hand is much better than Google if you are searching for technical info on Microsoft products.

Re: Firefox introduces PDF viewer

#195
post #142

Earlier quoted context omitted.

Chrome's built-in PDF plugin is actually from a Chinese company called Foxit. http://googlesystem.blogspot.com/2010/08/google-chromes-pdf-... Now start China bitching.

I've been using Foxit reader for years without knowing that it was Chinese. Its a great product - fast as hell - beats the pants off Adobe.

I've not found anything that is even close to on par with Acrobat for fill-in PDF forms either.... Other viewers can sort-of handle it, but the results don't look right most of the time.

Re: Firefox introduces PDF viewer

#196

Earlier quoted context omitted.

Your last statement is way overstating the original remark about NaCL. Google has definitely been pushing PNaCL as the solution for running large, complex apps that are usually native (like 3d games, and things that require lots of computation) on the web. And there's no way PNaCL is going to be viable in the next decade, it takes way too long for everyone to agree & implement. Gmail, docs, etc are complex, but don't…

One of the major reasons PNaCL is "non-viable" are the comments like this one, calling it non-viable, and insisting on a JS-everywhere future. If Mozilla et al spent half as much time trying to work with Google as they spend badmouthing everything that isn't JS, we'd have some solutions by now. These are political problems, not technical ones.

http://news.ycombinator.com/item?id=4632410

Re: Firefox introduces PDF viewer

#197
post #196

Earlier quoted context omitted.

One of the major reasons PNaCL is "non-viable" are the comments like this one, calling it non-viable, and insisting on a JS-everywhere future. If Mozilla et al spent half as much time trying to work with Google as they spend badmouthing everything that isn't JS, we'd have some solutions by now. These are political problems, not technical ones.

http://news.ycombinator.com/item?id=4632410

Yes, I think that demonstrates my point, given that the author is Brendan Eich, CTO of Mozilla.

Mozilla has had years to contribute something meaningful to the conversation, and instead they've consistently badmouthed Google's efforts while watching the meteoric rise of native mobile development.

So now they've finally brought asm.js to the table; a Mozilla-flavored common bytecode, which is what we've been wanting for years, and exactly what Eich and Mozilla said was wrong for the web: http://en.wikipedia.org/wiki/Google_Native_Client#Reception

Fine -- if using javascript to encode a bytecode is what it takes for Mozilla to actually take the need for a common bytecode seriously (and admit that DOM/JS/HTML/CSS is perhaps not adequate), then I won't look a gift horse in the mouth. I just wish they'd figured out the need for post-JS webapps a little sooner.

Re: Firefox introduces PDF viewer

#198
post #142

Earlier quoted context omitted.

Chrome's built-in PDF plugin is actually from a Chinese company called Foxit. http://googlesystem.blogspot.com/2010/08/google-chromes-pdf-... Now start China bitching.

I've been using Foxit reader for years without knowing that it was Chinese. Its a great product - fast as hell - beats the pants off Adobe.

I like MuPDF. It doesn't really have an "interface" though. Just page-up, page-down, and +/- to zoom. But if all you're doing is reading pdfs...

Re: Firefox introduces PDF viewer

#199
post #107

If you want to try PDF.js from your current browser, here's a demo: http://mozilla.github.com/pdf.js/web/viewer.html I wonder what's keeping this so ugly in Chrome. Also, does anyone know if printing is intended to work? It doesn't appear to have the pagination right, again at least on Chrome.

Looks much better than I imagined. Also painfully slow.

Most of the PDFs i read are electronics datasheets and they don't look half as good and it also seems to be missing the bookmarks as well. Scrolling through pages also seemed to take a long time.

I think i will have stick to adobe reader for now

Re: Firefox introduces PDF viewer

#200
post #90

Earlier quoted context omitted.

The PDF viewer in Chrome is available to Chromium users (just copying the libpdf.so or libpdf.DLL file into the appropriate directory works); it's just not open source.

I think for most people, when they say "available," they mean "without copyright infringement."

I'm not sure what the rules are: Google gives me permission to install Chrome, and then, presumably I have permission to delete everything but the PDF viewer plugin, right? Maybe the Chrome EULA disallows this, but, to be honest, I didn't read it.
Post reply on HN