QR code not found exception

Skip to first unread message

Bhaskar gadapu

Nov 17, 2017, 12:00:55 AM11/17/17
to zxing
Hi Team,

We have a QR code in the PDF and using multi format reader to read it. The zxing code reads QRs from most of the pdfs . But it is unable to find the QR from attached pdf. Could you please advise what is wrong with it.
I used PDFbox to convert pdf to an Image.

Snipped of the code is given below.

BufferedImage = page.convertToImage(); source = new com.google.zxing.client.j2se.BufferedImageLuminanceSource(BufferedImage); bitmap = new com.google.zxing.BinaryBitmap(new com.google.zxing.common.HybridBinarizer(source)); reader = new com.google.zxing.MultiFormatReader(); Result = reader.decode(bitmap); String QRCode = Result.getText();

Reply all
Reply to author
0 new messages