CairoSVG

Convert your SVG files to PDF and PNG.

About CairoSVG

CairoSVG is:

Let's go!

Install

CairoSVG is available on PyPI, you can install it with pip:

$ pip install cairosvg

Convert

You can use CairoSVG as a standalone command-line program:

$ cairosvg image.svg -o image.png

Embed

You can also use CairoSVG as a Python 3 library:

$ python3
>>> import cairosvg
>>> cairosvg.svg2pdf(url='image.svg', write_to='image.pdf')

Want more?

Please read the documentation to learn more about how to use CairoSVG.

What's new?

Latest version of CairoSVG is 1.0.19, released on October 30, 2015 (changelog).

CairoSVG 0.5

CairoSVG 0.5 has been released, with exciting new features and a lot of bugfixes:

Don’t expect new features before the next 1.0 version: only documentation and bugfixes are expected during the next weeks.