Can I include a link to a pdf or svg file inside Inkscape svg?

I use python to create many graphs of my data, and then Inkscape to layout individual graphs and diagrams in the panels of the main figure. I also add some additional elements, such as panel names and titles.

Every time I change something in my Python code, I have to manually insert svg / pdf graphics in Inkscape. I noticed that if I create graphics as bitmaps instead of vectors, I can insert a link into an Inkscape document and refresh the shape bar every time I regenerate graphics in python, which is phenomenal!

I am currently using this high DPI approach, but ideally I would like to insert a link to the svg / pdf file so that the whole picture is a vector and not a large raster the size of a DPI. I saw that you can include pdf files (don't think svgs works) this way in Adobe Illustrator.ai files, and I wonder if there is a way to do this in Inkscape too?

When I embed image links, Inkscape creates a tag in svg like this

<image
   sodipodi:absref="path/to/image.png"
   xlink:href="./image.png"
   y="14.014872"
   x="5.9285898"
   id="image12160"
   preserveAspectRatio="none"
   height="441.91879"
   width="466.55328" />

I can change the path to the svg file, but Inkscape will automatically convert svg to a low-resolution bitmap. If I change the path to pdf, I get an error. Is there anything that I can change in svg code to be able to link pdf / svg files and render them in Inkscape as vector files?

+4

All Articles