Skip to content

dsagomonov/batik-barcode-ext

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Barcode rendering for Apache™ Batik

Apache™ Batik extensions for Barcode rendering.

Usage

Use following maven coordinates and jitpack.io repository.

 <dependency>
    <groupId>com.github.dsagomonov</groupId>
    <artifactId>batik-barcode-ext</artifactId>
    <version>1.1</version>
 </dependency>

Supported elements

Use http://xml.apache.org/batik/ext namespace in your SVG-documents

<barcode>

1-D barcode element

<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg"
     xmlns:bc="http://xml.apache.org/batik/ext"
     height="192px" viewBox="0 0 336 192"
     width="336px">
    <g>
        <bc:barcode x="50" y="30" format="code-128" width="2" height="56"><![CDATA[900000155030]]></bc:barcode>
    </g>
</svg>

Attribures

Attribute name Description Default value
x The x coordinate of the barcode-rect 0
y The y coordinate of the barcode-rect 0
width The width of barcode line 1
height The height of the barcode-rect 20
format Barcode format -

Supported formats:

  1. codeabar
  2. code-39
  3. code-128
  4. code-93
  5. EAN-8
  6. EAN-13
  7. ITF

About

Barcode rendering for Apache™ Batik

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages