Until now, I had no problem using base64-encoded png/jpg images in css background-image using data-uri scheme, like this:
However I was not able to make this work with an unencoded svg image, for example:
It seems to me like it's a missing feature that could be added to Prince quite easily, as data-uri for base64-encoded images and svg backgrounds are already implemented.
background-image: url('data:image/png;base64,iVBORw0KGgoAAAANS...ggg==');
However I was not able to make this work with an unencoded svg image, for example:
background-image: url('data:image/svg+xml;utf8,<svg width="640" height="480" xmlns="http://www.w3.org/2000/svg"> <g> <text style="cursor: text;" stroke="red" transform="rotate(-45 325.371 238.07) matrix(0.980392 0 0 0.980392 3.2549 5.13725)" font-weight="bold" text-anchor="middle" font-family="Sans-serif" font-size="63" id="svg_1" y="259.280002" x="328.180001" stroke-width="0" fill="red">TEST</text> </g></svg>');
It seems to me like it's a missing feature that could be added to Prince quite easily, as data-uri for base64-encoded images and svg backgrounds are already implemented.