News for hackers. Stuff that matters.
Re:Show HN: Simple PDF to PNG Server by marcus_holmes on Friday November 15, 2019 @12:15PM (#21546598)
what's your experience running soffice server-side? I might have to do this soon, and I'm dreading it.
Re:Show HN: Simple PDF to PNG Server by slowenough on Friday November 15, 2019 @12:18PM (#21546633)
My experience is relatively small.

The `convert` script of ImageMagick calls soffice by default if the input file is a LibreOffice type.

I actually started writing a shell script to detect if it was DOCX etc, and run soffice first, but then I found out that ImageMagick does that automatically, if libreoffice is installed.

Re:Show HN: Simple PDF to PNG Server by marcus_holmes on Friday November 15, 2019 @12:22PM (#21546678)
hmm, OK, I didn't know that. Thanks that's useful :)

Be interesting to see how your demo site holds up under HN front page traffic - I know Imagemagic is used a lot for random web sites, but I worry about scale a lot. Any info would be useful!

Re:Show HN: Simple PDF to PNG Server by slowenough on Friday November 15, 2019 @12:28PM (#21546750)
no probs. if you want to email me I can let you know once it all quiets down.
Re:Show HN: Simple PDF to PNG Server by marcus_holmes on Friday November 15, 2019 @12:31PM (#21546787)
sent :)
Re:Show HN: Simple PDF to PNG Server by lixtra on Friday November 15, 2019 @05:08PM (#21549298)
We’ve been running it as part of alfresco. It’s not very stable and hangs every few weeks. Since we kill it every night we didn’t notice any problems.
Re:Show HN: Simple PDF to PNG Server by marcus_holmes on Saturday November 16, 2019 @08:42AM (#21552571)
good tip, thanks
Re:Show HN: Simple PDF to PNG Server by ztravis on Friday November 15, 2019 @02:20PM (#21547846)
It's actually not too bad. You can run a pool of soffice processes, but unless you really care about the startup time, I'd suggest running individual processes per job, which you can run headless from the command line. For the most part libreoffice does well, although at some point you'll start to discover the quirks in their rendering...