Calculates the width of the SVG document.

1 svgutils.getWidth

<svgutils.getWidth>
    <text /> !
</svgutils.getWidth>

Exceptions

requires 1 arguments, received: 0

An argument has to be passed.

Example
Copy
<xsql-script name='svgutils_getWidth'>
    <body>

        <set name='m_svg'>
            <svgutils.barcode code='13239393' type='ean' height='2.0' text='true' />
        </set>

        <set name='m_file'>
            <string>c:<file.separator />tmp<file.separator />pgf<file.separator />getWidth.svg</string>
        </set>
        <file.out.open id='out1' append='true'>
            <file name='#m_file' type='absolute' />
        </file.out.open>
        <file.out.write id='out1'>
            <m_svg />
        </file.out.write>
        <file.out.close id='out1' />

        <println>
            <svgutils.getWidth>
                <m_file />
            </svgutils.getWidth>
        </println>
    </body>
</xsql-script>