Forum How do I...?

Dynamically generated patterns

erik
Hi,

Would like to check if the pattern support dynamically generated pattern? I tried the latest prince version it works fine when I have the svg containing the pattern inside.
But it throws error when I append the pattern dynamically via javascript.

The error message thrown from prince is "warning: svg: fill/stroke: referenced content not gradient."
mikeday
Perhaps check the generated markup?
erik
Hi,

The generated markup is displayed correctly in html. Note that if I copy the generated markup directly to a static html it worked. Error only shown if I generate it from javascript.

Thanks.
mikeday
Perhaps there is a namespace error of some kind. Would you be able to email me (mikeday@yeslogic.com) a sample HTML file that demonstrates the problem?
erik
Hi Mike,

Sample html sent. Let me know if you need anything else.

Thanks.