Converts a XML text (SVG) in an image through batik, which is a Java library which can be used to render, generate and manipulate SVG graphics.
1 svgutils.svg2img
<svgutils.svg2img
width='width'
height='height'
maxWidth='maxWidth'
maxHeight='maxHeight'
jpeg='true|false'
pda='true|false'
>
<object2string /> !
</svgutils.svg2img>
Attributes | |||||
---|---|---|---|---|---|
Name | Type | Required | Default | Description | |
Awidth | string | Width of the image which you want to generate. | |||
Aheight | string | Height of the image which you want to generate. | |||
AmaxWidth | string | Maximum width of the image. | |||
AmaxHeight | string | Maximum height of the image. | |||
Ajpeg | boolean | false | Indicates if it will be returned in jpeg format. | ||
Apda | boolean | false | Indicates if it will be returned in PDA compatible format. |
Arguments | |||||
---|---|---|---|---|---|
Name | Type | Required | Unique | Nullable | Description |
Eobject2string | Object2string |
Returns | |
---|---|
Type | Description |
Img | Returns the image generated through SVG. |
Exceptions
requires 1 arguments, received: 0
An argument should be passed.
Example
Copy
<xsql-script name='svgutils_svg2img'> <body> <set name='m_file'> <string>c:<file.separator />tmp<file.separator />pgf<file.separator />svg2img.svg</string> </set> <println> <svgutils.svg2img width='640' height='400' maxWidth='800' maxHeight='800' jpeg='false' pda='false'> <m_file /> </svgutils.svg2img> </println> </body> </xsql-script>