Domanda

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);
È stato utile?

Soluzione

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

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top