missinglinkelectronics / sphinxcontrib-svg2pdfconverter

Sphinx SVG to PDF converter extension
Other
21 stars 10 forks source link

Add sphinxcontrib.cairosvgconverter #7

Closed kohtala closed 4 years ago

kohtala commented 4 years ago

I found there is a lightweight cairosvg package for Python for SVG to PDF conversion.

This adds a module to use it for conversion.

I have a large activity diagram created with PlantUML. Currently on Ubuntu 18.04.4 LTS I get strangely scaled images with inkscape, rsvg-converter makes it huge and very slow (although other tools keep it small and fast). CairoSVG is fast, but unfortunately the diagrams don't have all lines in correct places. But CairoSVG is under active maintenance, so that may improve over time. I request adding support for it as an alternative to the others.

kohtala commented 4 years ago

Thanks for review, and for pointing each place to update separately. The commit is now updated according to comments.

sephalon commented 4 years ago

Thanks, I made a few more minor changes and merged. Closed.