Products Downloads


French version


 

This macro inserts the content of an image file in SVG format into the result document.

It is used together with the XSL-FO <fo:instream-foreign-object> tag, which enables an image to be inserted in SVG format.

The content of this tag must be the image's <SVG> element. insertSVGData is used to extract the content of the SVG file and to insert the <SVG> element and its content.

 

Empty directive: Yes


Parameters

String

src

Name of image file in SVG format. The file path is defined as relative

Mandatory

String

templateOrigin

Identification of the template which will be used as a root for looking for the "src" file. The possible values are:

  • "main": the main template (i.e. the one initially chosen by the template engine),
  • "caller": the template calling this macro. This may be different from the main template if it was included using <#include> or <#import> directives.

Optional.

The default value is "main"



For example

<fo:instream-foreign-object>
<@hardisCore.insertSVGData src="../images/logo.svg" />
</fo:instream-foreign-object>

 


  • Aucune étiquette