Forum How do I...?

Reuse SVG without increasing filesize?

aschall
Is it possible to reuse a single SVG file without increasing the file size? So far, the disappointing answer seems to be no.

It is currently possible to use an SVG file as a background image via CSS, but for each occurrence, it adds to the file size. It can quickly introduce an enormous overhead to a PDF with very many pages.

Hopefully there is a solution to this that I'm just not aware of.
mikeday
Not yet, I'll add this to the roadmap for a future release.
joshuasilver
Any update on this? The last post was from 2008. We are looking to purchase this product, but we require this feature.

Thanks.
mikeday
We will take a look at this. Recently we have made several improvements to background handling and SVG, so it may be possible to arrange.
fassungsvergleich
Is there any news on this? For JPGs, repeated usage works fine, but svg-graphics increase file size.
I attached a test doc svgTest.html‎ - if you comment out bottom-right (the svg), filesize will shrink by 90% despite the svg being smaller then the jpg in bottom-left corner that seems to be repeated without affecting the filesize.

  1. svgTest.html137.1 kB
mikeday
We haven't done this yet. It's still on the roadmap, but we have some other feature to implement first, such as SVG filters.
mikeday
Support for SVG reuse is now available in latest builds! :D