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'
/>
Attributes | |||||
---|---|---|---|---|---|
Name | Type | Required | Default | Description | |
Atype | string | Type of barcode. | |||
Avalue | string | Text string which you want to codify in the barcode. | |||
Aheight | double | Heigth of the barcode. | |||
Aptext | boolean | ||||
Astrip | boolean |
Returns | |
---|---|
Type | Description |
String | Returns the generated barcode. |
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>