fop-qrcode


QRCode extension for Apache FOP

Objective

Generate and embed QRCode in XSL-FO, using Apache FOP

Dependency

Usage

  • Include qrcode-fop-ext.jar in your project classpath
  • Add following fragment to your FO: <fo:instream-foreign-object> <qr:qrcode xmlns:qr="http://code.google.com/p/fop-qrcode" length="20" cellsize="2" margin="4" message="hello, world" type="1" correction="L"> </qr:qrcode> </fo:instream-foreign-object>
  • A QR Code size d20mmx20mm will be added to the FO, with encoded message “hello, world”
  • You may customize the QRCode type and error correction type ( for details, please refer to Denso-wave page: http://www.denso-wave.com/qrcode/vertable1-e.html )
  • see xml/fo/helloworld.fo for full example

※ QRCode ® DENSO WAVE INCORPORATED All right reserved.

※ QRコード®は、株式会社デンソーウェーブの登録商標です。

Project Information

Labels:
qrcode fop xsl-fo