Convert anything to PDF

Try it out

  1. Choose a file
  2. Enter the result of the calculation with numbers before clicking convert.
  3. Click convert ->
  4. Get your pdf
  5. Be happy :)

Be aware that the deployed demo instance is with minimal resources. If it does not work it may be maxxed out, or scaled to zero. In the second case after few seconds it should work again. In the first.. well stop ddosing pls.

tl;dr for the curious ones

Resources:

So what is added here?

Simple web server created with one endpoint making that CLI command happening. So you can use it with one click.

Deploy to Azure

Or one docker run. Or simply adding it to a kubernetes cluster. You choose your cup of tea.

Background story

Recently a client who handles documents with sensitive data on their web application wanted to have previews online of all the files uploaded. My colleague quickly realized converting to PDF is the way to go, but all solutions he quickly found were sending the file to an unknown thirdparty blackbox. Which was not acceptable of course.

Luckily a very similar problem existed years ago (just check the commit date in the repo). Search on docker hub improved since then, while writing this I found a similar solution 4 years older.

So we added a container to the clients cluster, the files never leave our solution, and all files can have preview now as the browser handles pdf easily.