Question
2
Replies
124
Views
Posted: June 28, 2020
Last activity: June 29, 2020
How to decode barcodes in PDF using OCR
Hello.
I want to decode the barcode displayed in the PDF attached to the case and reflect only the necessary information in the case.
Is there a way to achieve this using PegaOCR?
Or can it be achieved in another way?
If anyone knows a good way, I would appreciate it if you could teach me.
Thank you very much.
Hello,
You can give a try on a combination of Apache PDFbox and Zxing Libray. PDFbox comes OOTB with Pega. For Zxing, you can download JAR and import to Pega from here.
Use PDFbox's convertToImage() function to convert PDF pages into image and Zxing library's Reader classes to process and read the Bar code from that image.
Writing activity with custom java code using these library functions will work for you.
Good Luck !