Dynamic SVG image

Post here questions and problems related to editing and publishing DITA content.
DitaNewbie
Posts: 6
Joined: Thu Nov 26, 2015 12:51 pm

Dynamic SVG image

Post 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.
Costin
Posts: 833
Joined: Mon Dec 05, 2011 6:04 pm

Re: Dynamic SVG image

Post 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
Costin Sandoi
oXygen XML Editor and Author Support
Post Reply