Forum Feature requests

Strings, Counters and SVG


Suppose I have an SVG file that I use as the page background. I can then use CSS and the margin boxes to overlay information like the document title and page number. This requires some messing about about with the CSS margins to make sure that the page number is in the correct place relative to the SVG background.

It would be easier and more reliable if Prince could replace tags inside the SVG file for the value of Prince strings and counters.

For example: the SVG might contain #Prince-string(doctitle)# or "Page #Prince-counter(page)#" which Prince replaces for the relevant values.

Any thoughts?

Sounds like a good idea, but tricky to implement for the time being, as background images are not treated as part of the document tree, even if they happen to be SVG images.