You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ofbiz.apache.org by Arun Sankar <ar...@outlook.com> on 2018/01/09 11:33:13 UTC
Help with generating QR code in pdf using Apache FO
Hi All,
I am using Ofbiz 10 and want to generate QR code in a pdf using Apache FO. Have tried a few things like suggested here https://issues.apache.org/jira/browse/OFBIZ-7034 like adding the barcode4j-trunk-zxing3.3.1-jdk8.jar.
and
<fo:instream-foreign-object>
<barcode:barcode xmlns:barcode="http://barcode4j.krysalis.org/ns" message="Welcome To Apache OFBiz">
<barcode:qr>
<barcode:module-width>1mm</barcode:module-width>
<barcode:encoding>UTF-8</barcode:encoding>
<barcode:ec-level>H</barcode:ec-level>
<quiet-zone enabled="true">5mm</quiet-zone>
</barcode:qr>
</barcode:barcode>
</fo:instream-foreign-object>
However I get this error:
org.krysalis.barcode4j.BarcodeException: No barcode configuration element not found
at org.krysalis.barcode4j.BarcodeUtil.createBarcodeGenerator(BarcodeUtil.java:110)
at org.krysalis.barcode4j.BarcodeUtil.createBarcodeGenerator(BarcodeUtil.java:146)
Any suggestions on what I might be missing here.
Thanks,
Arun