Page 1 of 1

Dynamic SVG image

Posted: Tue Jul 03, 2018 3:50 pm
by DitaNewbie
I am using DITA-OT 1.8. I am wondering how to create dynamic SVG in DITA-OT and save it in temp\Customization\OpenTopic\common\artwork.

The scenario is, One of our map's attribute contains watermark text, it is based on user's input. So far, I am able to read that value and create embedded svg on-the-fly in .FO file.

The problem is I want to save this svg in above folder, so I can refer it in @background-image attribute of <page-sequence>. For various reasons i want this svg to be in the file system.

Thanks in advance for suggestions.

Re: Dynamic SVG image

Posted: Wed Jul 04, 2018 12:42 pm
by Costin
Hi DitaNewbie,

This could be done using a customization folder, which could contain the desired folder structure.
More details about customizing the output through a customization folder is available on this page from our User-Guide.

The "Adding a Watermark to PDF Output" example could also worth taking a look at, as it is pretty similar to what you need to achieve.

Regards,
Costin