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.
Installation
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 conf.py.
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.
Configuration
Inkscape
- inkscape_converter_bin
Path to Inkscape binary. By default, this is inkscape.
- inkscape_converter_args
Additional command-line arguments for Inkscape, as a list. By default, this is ['--export-area-drawing'].
RSVG
- rsvg_converter_bin
Path to RSVG converter binary. By default, this is rsvg-convert.
- rsvg_converter_args
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.
Source Distribution
Built Distribution
Hashes for sphinxcontrib-svg2pdfconverter-1.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0e65959c9a8fd9dad6985c041fc40573db19e96458c9c2bd7d08f2c370ed0ac2 |
|
MD5 | ba14569f1c3eacc4fe4bbc63cf0f7ff2 |
|
BLAKE2b-256 | 9adcc0e7d186f5da90b18dbadd88725a26874db56002ea2e4f05652b7aa9782e |
Hashes for sphinxcontrib_svg2pdfconverter-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8a965a82423b4a0be7c46134f0e8395543198112520c7962a9b1b98d0c346885 |
|
MD5 | 02c6e1a579242d277ec09d6b0ab895e3 |
|
BLAKE2b-256 | 7983d712a25303429570c641caa113d1282c27012bbd4157417d07829947a549 |