svglib
svglib copied to clipboard
Provide an online conversion tool?
For a long time I felt we should have a tool that allows for interactive eye-ball tests to check how the input SVG and output PDF compare when rendered. I've recently done a lot with Jupyter and discovered https://github.com/QuantStack/voila which is kind of building online apps running in a Jupyter sandbox.
I gave it a try with svg2pdf and wrote a proof of concept in my fork of voila. There is still a little issue with regarding the spawned webserver when it runs online using https://mybinder.org, but if you clone it and open the file notebooks/svg2pdf.ipynb it should work ok locally.
There are comments in the code but no other docs or even a more concise UI for running in voila, and you should be familiar with the Jupyter universe to get this running at all. If you want to see it online (visually cluttered with a few headlines and not working for the PDF view) you can click here and wait ca. 20 seconds: https://mybinder.org/v2/gh/deeplook/voila/master?urlpath=voila/render/notebooks/svg2pdf.ipynb.
This is very early stage, but I wanted to solicit early comments and feedback, if you can get this running.
I think the simplest would be to have a python http server with an API acting as a bridge between svglib and the web page