How to scan barcode from a scanned PDF

Hello guys,

I am trying to read bar code from scanned pdfs, not from digital pdfs (where we can select text).
Could any one help what approach I should follow. ? i gone through one available post on this but getting any solution here- How to Scan QR code in scanned pdf's

I have package available which can read barcode if if pass only bar code image as input. SO issue comes when i am using scanned pdf .
There are two activities available -

  1. Extract Images From PDF
  2. Export PDF Page As Image

None of these two are able to extract bar code from scanned pdf.

Is there any other solution of this problem ?
Please let me know.,

1 Like

Hi Gaurav, i have the same case. Were you able to achieve this? If so, how you did?

Is the PDF a scanned image or a generated PDF with selectable text? If it’s selectable text then you can use Read PDF Text and it will likely convert the barcode to numbers.

Hi Paul. It’s a scanned Image. Though text exists, it’s not selectable. Any suggestions how to resolve the issue?

If there is text but it’s not selectable then the text is not text, it’s a scanned image. The difference between actual text and scanned text is very important for automating with PDFs.

Anyway…

The answer from the quoted thread is no longer up to date. An UiPath employee provided a code example that shows how to extract barcodes from PDF documents (scans works too). The result is then an “isolated” barcode image - which must then be processed further.

However, I had to adapt the code example to make it work for me. This is no longer low-code.

1 Like