Live data from Hacker News

Show HN: Simple PDF to PNG Server

secureview.cloudbrowser.xyz

41–50 of 58 posts

Re: Show HN: Simple PDF to PNG Server

#41

Actually it just uses ImageMagick and soffice under the hood, so it can do way more than PDF. I've tested it with DOC, DOCX, XLS, and they all seem to work. Edit: in case anyone wants an example, here's the conversion of tesla-model-s.pdf[0]: https://secureview.cloudbrowser.xyz/uploads/filekat9.v05lnle... [0]: https://www.tesla.com/sites/default/files/tesla-model-s.pdf

Sorry, I'm afraid I just cleaned the upload directory. HN, you have converted 1.6G of files.

Here's that Tesla example link again:

https://secureview.cloudbrowser.xyz/uploads/file5rc5.9nhts2j...

Re: Show HN: Simple PDF to PNG Server

#43

Earlier quoted context omitted.

Note that HN (and probably many others) won't correctly autolink URLs with a period at the end. It's also somewhat confusing. You may want to consider removing it.

Oh! Sorry. Let me change that http://tiny.cc/p2github edit: I like the dot ¯\_(ツ)_/¯

Package it as a docker image and you can then run it on cloud.run (Might be expensive though).

Disclaimer: I work for Google Cloud.

Re: Show HN: Simple PDF to PNG Server

#45

Actually it just uses ImageMagick and soffice under the hood, so it can do way more than PDF. I've tested it with DOC, DOCX, XLS, and they all seem to work. Edit: in case anyone wants an example, here's the conversion of tesla-model-s.pdf[0]: https://secureview.cloudbrowser.xyz/uploads/filekat9.v05lnle... [0]: https://www.tesla.com/sites/default/files/tesla-model-s.pdf

what's your experience running soffice server-side? I might have to do this soon, and I'm dreading it.

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

#46
post #5

Earlier quoted context omitted.

Nice. What is your tech stack to serve it?

Just a digital ocean droplet running FreeBSD, then PM2 running Node.JS and ImageMagick built with multicore support.

One wonders if you can WASM-ify ImageMagick and the use a JS FileReader and a canvas or other PNG output approach to do this all client side. Hrmm, I might tackle this myself if I get the time...

Re: Show HN: Simple PDF to PNG Server

#49

Earlier quoted context omitted.

Just a digital ocean droplet running FreeBSD, then PM2 running Node.JS and ImageMagick built with multicore support.

One wonders if you can WASM-ify ImageMagick and the use a JS FileReader and a canvas or other PNG output approach to do this all client side. Hrmm, I might tackle this myself if I get the time...

Looks like someone has gotten pretty far WASM-ifying ImageMagick already [1]!

[1]: https://github.com/KnicKnic/WASM-ImageMagick

Re: Show HN: Simple PDF to PNG Server

#50

Actually it just uses ImageMagick and soffice under the hood, so it can do way more than PDF. I've tested it with DOC, DOCX, XLS, and they all seem to work. Edit: in case anyone wants an example, here's the conversion of tesla-model-s.pdf[0]: https://secureview.cloudbrowser.xyz/uploads/filekat9.v05lnle... [0]: https://www.tesla.com/sites/default/files/tesla-model-s.pdf

Sorry, I'm afraid I just cleaned the upload directory. HN, you have converted 1.6G of files. Here's that Tesla example link again: https://secureview.cloudbrowser.xyz/uploads/file5rc5.9nhts2j...

Forgive me, I've cleaned the uploads directory again. Over 3.5G of files converted.

Here's that Tesla link (I'm making it permanent now):

https://secureview.cloudbrowser.xyz/uploads/filecp9z.ohbtt6u...

Post reply on HN