문제

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);
도움이 되었습니까?

해결책

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top