Hi Mandar,

I generate them in Java or Groovy, using the generateQRCodeImage service:

Map<String, Object> qrMap = UtilMisc.<String, Object>toMap("message", yourData,
                        "height", 200, "width", 200);
Map<String, Object> qrCodeResult = 
this.dispatcher.runSync("generateQRCodeImage", qrMap);
if (qrCodeResult != null && qrCodeResult.get("bufferedImage") != null) {
         BufferedImage qrCode = (BufferedImage) 
qrCodeResult.get("bufferedImage");
...
}

Then use this image in the xsl-fo code.

Best regards,
Ingo

-----Ursprüngliche Nachricht-----
Von: Mandar K <mankul...@gmail.com> 
Gesendet: Dienstag, 22. August 2023 19:51
An: ofbizuser <user@ofbiz.apache.org>
Betreff: QR code creation

Hi Team, requesting urgent input.

How to create QR code in pdf.

The one shown in the demo example is not working.

Thank you.

-- 
Regards
Mandar
Adaptability is the whole mystery of life - Swami Vivekanand

Reply via email to