On 2014-04-04 15:22 +0100, John Smith wrote:
Im trying to create svg files in an automated manner (with unix shell scripts, command line tools, etc.) All output must be in SVG so that I can open the resulting files later in MS Visio and/or LibreOffice.
I figured that one way to achieve this could be : layer existing svg files on top of each other. For example, I might have a (relatively) large svg file that draws a piece of grass or a lawn or something. I then have a (relatively) small svg file that draws a tree. I then draw the tree svg on top of the lawn svg a at a few different places at coordinates x,y. The end result would then be an SVG file of a lawn with some tree's in it.
I was wondering if, and if so how, I could achieve this with Inkscape ? So far Ive only managed to convert a single svg image to another svg image like this :
inkscape ./foo.svg --export-plain-svg=./bar.svg
Is there a way to place small svg files on top of another large svg file, at specified locations in the large svg file, from the commandline, with Inkscape?
Maybe useful:
<quote> svg_stack - combine multiple SVG elements into a single SVG element Overview
svg_stack combines multiple SVG elements into a single SVG element. It can be called from the command line (less flexible) or called from the Python interface (more flexible). </quote> https://github.com/astraw/svg_stack