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

You can have more information and help in the "Installation" part of the documentation .

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 2.0.0, released on November 24, 2016 (changelog).

Version 2.0.0

CairoSVG 2.0.0 has been released!

2.0.0 is a new major version, its changelog includes: