Skip to content

tommy4st/fop-qrcode-zxing

 
 

Repository files navigation

Dependencies
*Apache FOP 2.4 http://xmlgraphics.apache.org/fop/
*ZXing ("Zebra Crossing") http://code.google.com/p/zxing/

Usage
Put the [jar](https://github.com/tommy4st/fop-qrcode-zxing/releases/tag/0.3) in the FOP classpath.

<qr:qr-code xmlns:qr="http://hobbut.ru/fop/qr-code/" width="10cm" message="Hello, Zxing!" correction="l">

Parameters
width - Width of qr-code. Can be in mm,pt,in,cm. Default: 50mm
correction - type of correction. Can be l,m,q,h. Deafult: l
encoding - Message encoding. Default: ISO-8859-1
message - Message to encode.
margin - Quiet zone margin (in module units). Default: 4
color - Color of elements (in SVG notation). Default: black

sample.xml : https://github.com/tommy4st/fop-qrcode-zxing/blob/master/src/test/resources/sample.xml

About

Apache FOP extension to embed SVG QRCode

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 100.0%