Svglib

About

Svglib is an experimental library for reading SVG files and converting them (to a
reasonable degree) to other formats using the Open Source ReportLab
Toolkit. As a package it reads existing
SVG files and returns them converted to ReportLab Drawing objects that
can be used in a variety of ReportLab-related contexts, e.g. as Platypus
Flowable objects or in RML2PDF. As a command-line tool it converts SVG
files into PDF ones.

2. Manual installation

Alternatively, you can install the svglib tarball after downloading
the file svglib-0.6.3.tar.gz and decompressing it with the following
command:

$ tar xfz svglib-0.6.3.tar.gz

Then change into the newly created directory svglib and install
svglib by running the following command:

$ python setup.py install

This will install a Python module file named svglib.py in the
site-packages subfolder of your Python interpreter and a script
tool named svglib in your bin directory, usually in
/usr/local/bin.

Dependencies

Svglib depends on the reportlab package, which, as of now, you
have to install manually, before you can use svglib. Unfortunately,
up to its latest release, reportlab 2.2, this package cannot be
installed automatically using easy_install.

Testing

The svglib tarball distribution contains a Unittest test suite
in the file test_svglib.py which can be run like shown in the
following lines on the system command-line: