Hacker News new | ask | show | jobs
by rrosen326 2967 days ago
This particular solution may not be solving the problem I need, but I'd love to see a really good version of PDF.js running in electron for existing electron apps.

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...

1 comments

> 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.

Someone who knows how to do that probably isn’t programming in electron.
ImageMagick requires Ghostscript to handle pdfs. So you need both.

Except on OSX, where you can use SIPS. But on Windows, you're stuck with IM/GS.