| Author | James Mortimer |
|---|---|
| Name | svg image user macro |
| Version | 1 |
| Product Versions | Developed on 2.1.5 |
| Author(s) | James Mortimer |
| Homepage | n/a |
| Price | free |
| License | none |
| JavaDocs | n/a |
| IssueTracking | here |
| Download JAR | n/a |
| Download Source | inline below |
| Alternative SVG Macro Available While unconfirmed, it is possible that the SVG Image Macro can display SVGs in PDF exports while this one cannot. |
A simple user macro to embed scalable vector graphics in wiki pages. You need to install a browser plugin, such as Adobe, to get it to work. We found that using the simple image embed, !image.svg! did not work properly.
Usage Examples
{svg:attachemnt.svg}
{svg:attachemnt.svg|<width>|<height>}
{svg:attachemnt.svg|500|500}
Code
Create a user macro with no body called "svg"
#if($param1) #set($width=$param1) #else #set($width=500) #end #if($param2) #set($height=$param2) #else #set($height=500) #end <embed class="SVG" name="SVG" width="$width" height="$height" src="${config.getDomainName()}/download/attachments/${content.getIdAsString()}/${param0}">

Comments (3)
Oct 24, 2006
Ivan Benko says:
I could not get this macro working on 2.2.8 at all. Also there is reported probl...I could not get this macro working on 2.2.8 at all.
Also there is reported problem with exporting to PDF http://forums.atlassian.com/thread.jspa?messageID=257235843#257235843
Jun 07, 2007
Niki Covalt says:
Where would I find the adobe browser plugin?Where would I find the adobe browser plugin?
Feb 11, 2008
Jean-Baptiste Catté says:
Here: Adobe - SVG PluginHere: Adobe - SVG Plugin