News for hackers. Stuff that matters.
Re:Firefox: Announcing Project Mortar by fdej on Friday September 30, 2016 @03:50PM (#12614826)
Anecdotally, PDF.js is slow compared to native viewers and often renders documents incorrectly. And the project is five years old now. It's not bad as a fallback, but considering how important PDF files are, looking for a better solution makes sense.
Re:Firefox: Announcing Project Mortar by eridius on Friday September 30, 2016 @03:55PM (#12614859)
Agreed. As an OS X user, I hate it any time a browser or website uses something like PDF.js instead of the native PDF support. The native PDF support in OS X is fast and excellent.
Re:Firefox: Announcing Project Mortar by dmix on Friday September 30, 2016 @05:53PM (#12615492)
> instead of the native PDF support

You mean instead of just downloading the file? Or does Preview support opening PDF links.

Re:Firefox: Announcing Project Mortar by eridius on Friday September 30, 2016 @06:23PM (#12615600)
Safari will display PDFs natively without requiring you to download it to disk.
Re:Firefox: Announcing Project Mortar by hellofunk on Friday September 30, 2016 @07:03PM (#12615751)
And on iOS too!
Re:Firefox: Announcing Project Mortar by om2 on Saturday October 01, 2016 @02:07AM (#12616701)
And fully sandboxed on both macOS and iOS!
Re:Firefox: Announcing Project Mortar by taspeotis on Friday September 30, 2016 @08:33PM (#12616019)
Care of QLPreviewController [1], something I wish Android had an equivalent for...

[1] https://developer.apple.com/reference/quicklook/qlpreviewcon...

Re:Firefox: Announcing Project Mortar by the_watcher on Friday September 30, 2016 @06:27PM (#12615617)
Preview does support opening PDF links.
Re:Firefox: Announcing Project Mortar by agumonkey on Friday September 30, 2016 @06:01PM (#12615530)
PDF.js sole purpose is to be non native. I don't want to rely on native existence of a safe enough, fast enough PDF renderer. PDF.js provides just that.
Re:Firefox: Announcing Project Mortar by jahewson on Friday September 30, 2016 @08:51PM (#12616072)
Then they should make PDF.js faster! The way it uses a canvas could be significantly improved. I guess the point is that they don't want to invest the engineering resources to do that, which is a shame but I understand the reasoning.
Re:Firefox: Announcing Project Mortar by euske on Friday September 30, 2016 @10:21PM (#12616288)
My work machine is now completely Adobe-free. thanks to PDF.js. I hope they keep this project afloat.
Re:Firefox: Announcing Project Mortar by bluedino on Friday September 30, 2016 @05:01PM (#12615266)
While convienent, I can't see how anyone would want to use a browser-based PDF viewer over a native one.
Re:Firefox: Announcing Project Mortar by cptskippy on Friday September 30, 2016 @05:40PM (#12615424)
I got tired of constantly updating due to vulnerabilities. I haven't had a PDF viewer installed for years, I have PDFs open in Firefox.

I got tired of having Adobe Updater constantly running in the background (why not a scheduled task run periodically like Google Updater?!) and the need to update/reboot my PC regularly when a new version of Acrobat came out.

I switched PDF viewers briefly but ended in the same update cycles I was in with Adobe.

PDF.js isn't perfect but I've yet to come across a PDF that it couldn't open for me. I use it mainly to view things like insurance bills or other random documents where pixel perfect rendering is irrelevant.

Re:Firefox: Announcing Project Mortar by __david__ on Friday September 30, 2016 @10:58PM (#12616356)
Agreed. I use Firefox on OS X and I love pdf.js. I found it a huge hassle to get native PDF working on Firefox in the past, and with pdf.js I just don't have to worry about security. I've also not had much/any compatibility issues with pdfs. Bills, concert tickets, and specs all render acceptably. I will be very sad to see it go.
Re:Firefox: Announcing Project Mortar by dmix on Friday September 30, 2016 @05:54PM (#12615499)
This is why package managers are so important for any OS. They shouldn't be updating independently.
Re:Firefox: Announcing Project Mortar by Certhas on Saturday October 01, 2016 @07:53AM (#12617485)
As a scientist, pdf.js is simply not capable enough for any serious work with pdf.

I would love to do as you say, and read pdfs in the browser only. From what I have learned in the context of this discussion, switching away from pdf.js will contribute to enabling that.

Re:Firefox: Announcing Project Mortar by chrismonsanto on Saturday October 01, 2016 @03:02PM (#12619363)
> As a scientist, pdf.js is simply not capable enough for any serious work with pdf.

As a counterpoint, I regularly read (CS) research papers in pdf.js and have never had any trouble. One of the reasons I stuck with Firefox is the superior Zotero integration.

Re:Firefox: Announcing Project Mortar by Certhas on Monday October 03, 2016 @05:57AM (#12626254)
Hmmm... pure math papers are often fine but I used to still see misformatted math relatively frequently, maybe I should give it another try.
Re:Firefox: Announcing Project Mortar by tigershark on Saturday October 01, 2016 @06:26AM (#12617287)
Nonsense. On windows I have used foxit for a long time and I never had all that shit that you are talking about. On Mac if anyone told me that they used happily a JavaScript PDF viewer instead of the built in viewer I would seriously worry for their mental health.
Re:Firefox: Announcing Project Mortar by morsch on Friday September 30, 2016 @05:15PM (#12615331)
The only time I ever start a native PDF viewer is when I need to actually print it. Apart from those rare cases, to me a PDF is a web page, just worse, and I want it to live where all the web pages live on my computer, in a browser tab, with all the facilities the browser provides (history, tree style tabs, frictionless access to Google, etc etc).

I'm sure ymmv depending on what kind of PDFs you use and how often; I'm on the lower end.

Re:Firefox: Announcing Project Mortar by lalalander on Friday September 30, 2016 @05:47PM (#12615459)
I might be in the minority, but I really dislike reading PDFs on OS X's Preview while using the touchpad because of accidental horizontal scrolling. I do not understand why Apple decided to make the "rubberband" effect when clearly there's nothing to scroll on the left and right sides of the PDF. If anyone has a solution to prevent horizontal scrolling on OS X applications (Safari, Preview etc), please do share.
Re:Firefox: Announcing Project Mortar by jhatax on Sunday October 02, 2016 @12:04PM (#12622925)
Try this: Preview -> View -> Continuous Scroll.

It did the trick for me on macOS Sierra.

YMMV

Re:Firefox: Announcing Project Mortar by lalalander on Monday October 03, 2016 @01:44PM (#12629606)
I'll give this a try when I finally upgrade to Sierra. Thanks!
Re:Firefox: Announcing Project Mortar by scrollaway on Friday September 30, 2016 @05:08PM (#12615308)
Convenience is exactly it.

Have to admit I find it pretty damn useful myself, even though I believe PDFs to be completely out of scope of a web browser.

I really wish the format would disappear. Everybody says it's useful at being a "perfect digital representation of what things look like on paper", which is certainly super useful for printing. But I cannot understand how so much information that should simply be distributed in either HTML (forms), epub (ebooks) or jpg/png (scans and digital images) is distributed over PDF, a pain-in-the-arse, overengineered format whose readers are always extremely slow and riddled with security issues and from which it's extremely hard to extract source data.

Re:Firefox: Announcing Project Mortar by Sanddancer on Friday September 30, 2016 @09:08PM (#12616117)
There are a number of places where PDF has advantages that HTML, etc can't match. For forms, the PDF spec has electronic signatures, which means that you can sign legal documents without having to find a fax machine, or mail things back and forth. For print documents, it can do things like multiple column text in a sensible manner, across page breaks. As a general document format, it allows you to actually describe paper sizes, etc, so you can email someone a document that looks like it will when it's finalized. For archival, it means you can, without a bunch of hacks, create searchable documents of old, scanned in content. So things like electronics datasheets are searchable, and still retain the formatting of the originals. PDF continues to exist because there are so very many places that the alternatives are an even bigger pain in the ass, fix those, and then you can start to get rid of pdf.
Re:Firefox: Announcing Project Mortar by gkya on Saturday October 01, 2016 @03:55AM (#12616966)
Would postscript classify as an "even bigger pain in the ass" with regards to pdf?
Re:Firefox: Announcing Project Mortar by scrollaway on Saturday October 01, 2016 @01:40AM (#12616646)
All sensible uses of PDF (except your first one; electronic signatures are ridiculous, but let's not get into that).

I'm talking about where pdf is used and shouldn't be.