Live data from Hacker News

Show HN: Simple PDF to PNG Server

secureview.cloudbrowser.xyz

51–58 of 58 posts

Re: Show HN: Simple PDF to PNG Server

#52
post #45

Earlier quoted context omitted.

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.

good tip, thanks

Re: Show HN: Simple PDF to PNG Server

#53

Earlier quoted context omitted.

No but a mention this is happening serverside and you are actually copying the file to the server kind of notice or message would be correct imho

> [...] mention this is happening serverside Not being snarky, but the submission title does say "Server".

I know, and you, and probably all tech savvy people, realise when clicking the browse file button you are probably going to submit a file to a server, but not everybody does and those do need an explicit warning in my opinion.

Re: Show HN: Simple PDF to PNG Server

#54

Earlier quoted context omitted.

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

Sounds like you need to auto-clean your uploads directory

Re: Show HN: Simple PDF to PNG Server

#56
post #44

Have you considered making this open source and distribute as a container image that people can self-build/deploy/host on a serverless platform, like a Google Cloud Run? For example, this DOC to PDF converter: https://github.com/as-a-service/pdf

Thanks, this is actually on FreeBSD, so it's not so easy to make it for Docker, but the repo now has a Dockerfile for nix systems. I haven't tested it tho.

Re: Show HN: Simple PDF to PNG Server

#57
post #55

Earlier quoted context omitted.

as an output format?

I wondered about input format.

Hey, yeah I think it doesn't support fully on the input end, but it does support on the output (if you change the $format variable in the convert script).

Input looks a bit weird, for example,

https://secureview.cloudbrowser.xyz/uploads/file1tda.4paa65d...

Which is from:

https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/AJ_Dig...

Re: Show HN: Simple PDF to PNG Server

#58
post #43

Earlier quoted context omitted.

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.

Hey, this is actually atop FreeBSD so it is not as simple as just making a Dockerfile.

It should be too much tho, perhaps just making an install_deps.sh script alternative to use apt, and writing a Dockerfile.

You're welcome to submit a PR but I might get to it first.

Edit: I just made some changes relating to this, including a Dockerfile. I have not tested in Docker, but it now works on Nix (Debian)

Post reply on HN