Pregunta

I don´t know how add a QR code on my PDF, i use java and PDFjet, some one can help me????? I use PDFJet because I can´t use Jreports on GAE.

I try this but return error:

      QRCode qr = new QRCode("123456", 1);
        qr.setPosition(0, 0);
        qr.drawOn(page);
¿Fue útil?

Solución

I found the answere:

QRCode qr = new QRCode("123456", ErrorCorrectLevel.H);
qr.setPosition(0, 0);
qr.drawOn(page);

only change the second parameter for the type of ErrorCorrectLevel

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top