A standards-based PDF viewer created using Electron and Pdf.js
github.com
github.com
Use case: You're building an electron app. It needs to view pdfs. Right now, you need to implement pdf.js yourself. It's non trivial. And the more full-featured you want it, the harder it is.
And that's only half the issue. What if you want a cross-platform way to create a thumbnail of a pdf? Ugg, don't let me get started on ghostscript...
Embed statically linked versions of imagick in your program or download them upon first load/setup.
Except on OSX, where you can use SIPS. But on Windows, you're stuck with IM/GS.
https://en.wikipedia.org/wiki/History_of_the_Portable_Docume...
The FAQ says it's been baked into Firefox since v19: https://github.com/mozilla/pdf.js/wiki/Frequently-Asked-Ques...
Everything that runs on a computer is run as, or by, native code at some point, and that doesn't make it automatically insecure.
At the same time, since Electron uses a browser, any potentially unsafe native code in the browser is loaded and waiting to be exploited anyway when using this viewer.
Finally, I think most people (myself included) trust their browser developer more than they trust a random person's Javascript thrown on GitHub.
That said, I don't see why anybody would use this over mupdf or evince.
If I download a PDF it's because I want to open it in my regular PDF viewer (mupdf) and not in a crappy browser based one.
There aren't decent PDF tools for Linux and this is also based on web standards which is awesome.
The combination of older/robust technology like PDF but with modern web standards is really compelling.