Skip to main content

Sphinx SVG to PDF converter extension

Project description

This extension converts SVG images to PDF in case the builder does not support SVG images natively (e.g. LaTeX).

Internally, either Inkscape or rsvg-convert from libRSVG as a more lightweight alternative is used to convert images.


Just install via pip:

$ pip install sphinxcontrib-svg2pdfconverter

You can choose between Inkscape and libRSVG by either adding sphinxcontrib.inkscapeconverter or sphinxcontrib.rsvgconverter to the extensions list in your

Make sure to have either inkscape or the rsvg-convert command available in your systems PATH and, if necessary, adapt the inkscape_converter_bin or rsvg_converter_bin config value respectively.



Path to Inkscape binary. By default, this is inkscape.
Additional command-line arguments for Inkscape, as a list. By default, this is ['--export-area-drawing'].


Path to RSVG converter binary. By default, this is rsvg-convert.
Additional command-line arguments for the RSVG converter, as a list. By default, this is the emtpy list [].

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for sphinxcontrib-svg2pdfconverter, version 1.0.1
Filename, size File type Python version Upload date Hashes
Filename, size sphinxcontrib_svg2pdfconverter-1.0.1-py3-none-any.whl (6.6 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size sphinxcontrib-svg2pdfconverter-1.0.1.tar.gz (4.4 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page