A library to print zxing qr code to console. Inspired by QrToTerminal which support Java 11 or above.
Write this project to support Java 8.
Maven
<dependency>
<groupId>xyz.dunjiao.cloud</groupId>
<artifactId>qr-to-console</artifactId>
<version>1.0</version>
</dependency>
Print to console directly
BitMatrix bitMatrix = qrCodeWriter.encode(input, BarcodeFormat.QR_CODE, size, size, hintMap);
QRCodeUtils.print(bitMatrix, true);
Get the string use later like in Spring Shell
BitMatrix bitMatrix = qrCodeWriter.encode(input, BarcodeFormat.QR_CODE, size, size, hintMap);
return QRCodeUtils.toString(bitMatrix, true);