我正在使用 com.google.zxing 版本 3.3.2 使用 jasper 报告生成 QRCode。生成的二维码有空格和边距。我怎样才能避免这些空间。
我找到了添加 EncodeHintType.MARGIN, -1 的解决方案,但是如何在 jasper 报告中的图像表达式中添加它。
下面是我现在使用的图像表达式。
com.google.zxing.client.j2se.MatrixToImageWriter.toBufferedImage(
new com.google.zxing.qrcode.QRCodeWriter().encode(
$F{Code},com.google.zxing.BarcodeFormat.QR_CODE, 300, 300))
猛跑小猪
相关分类