pyInkscape APIs¶
The most important class in pyInkscape is the pyinkscape.Canvas.
This represents an Inkscape canvas (i.e. SVG file).
Graphical objects (text, circle, rectangle, etc.) can be drawn onto available pyinkscape.inkscape.Group objects.
TODO: Explain about common APIs
-
class
pyinkscape.Canvas(filepath=':memory:', *args, **kwargs)[source]¶ This class represents an Inkscape drawing page (i.e. a SVG file)
-
layer(name: str) → pyinkscape.inkscape.Group[source]¶ Find the first layer with a name
Layer names are not unique. If there are multiple layers with the same name, only the first one will be returned
- Parameters
name – Name of the layer to search (Note: Layer names a not unique)
- Returns
A Group object if found, or None
- Return type
-