Generates a barcode using svg.

1 barcode.svg

<barcode.svg
    type='ean|upc|3of9|code128'
    value='value'
    height='height'
    ptext='true|false'
    strip='true|false'
/>

Exceptions

required attribute 'code' not defined

Required attribute code.

required attribute 'type' not defined

Required attribute type.

required attribute 'height' not defined

Required attribute height.

Example

Get an EAN barcode from svg.

Copy
<xsql-script name='barcode_svg'>
    <body>
        <println>
            <barcode.svg code='132393933' type='ean' height='2.0' text='true' value='D01PC-117'/>
        </println>
    </body>
</xsql-script>
Example

Get a code128 barcode from svg.

Copy
<xsql-script name='svgutils_barcode'>
   <body>
       <println>
           <barcode.svg code='132393933' type='code128' height='2.0' text='true' value='D01PC-117'/>
       </println>
   </body>
</xsql-script>