I need to extract the QR code from the invoice and extract the details from that extract the details from this above mentioned scenario
Please explain the issue correctly…
i want to decrypt the qr code in my input pdf invoices and i need to extract that details
Extract PDF Pages: First extract the QR code from your PDF file.
Identify and Decode QR Code: After extracting the images or pages containing the QR code, we’ll decode the information embedded in it.
This can also be done using DU (Document Understanding)
If u required code please let me know
Welcome to the forum @Melbin_Antu2 ![]()
Regarding your usecase,
-
Use Extract Images From PDF activity to get all the images from the PDF.
Activities - Extract Images From PDF -
Now install UiPathTeam.Barcode package.
-
Use activity
Decode Imagefrom the package
-
Here is how to use it. Sample code:
CICD_Demo.zip (1.5 MB)
Output:
Hi @Melbin_Antu2 ,
Adding to ashok , incase if you still have any doubts, please feel free to watch below video to get an idea how to decode QR.
Happy learning and Happy Automation!
Is there any library other than UiPath.teams.barcode since it’s dependencies outdated
Try this solution if not tried already.
Hi! Thank you for the response, I am using invoke code using ZXing library and it works just fine.
Hi @ashokkarale
I have already tried this UiPathTeams.barcode but for current UiPath.uiautomation.activites version i.e. more than 24 is not working as it shows error while running through assistant so could you please help me to achive that ?
I have a image of Qr code and i need to get that decode.
@BerlianaZain could you please help me to do so ? as i am stuck in the same issue
For Extraction, Check out UiPath.PDF.Activities.
After Installing the package, Use Read PDF With OCR Activity. Pick an OCR(Preferably Tesseract OCR if you want reliability)
Assign the output to a variable(In this case the entire page your QR Code is located)
Use .Contains() if youre extracting multiple pages.
Finally use Regex to extract exactly what youre looking for. (System.Text.RegularExpressions.Regex.Match(inputText, pattern).Value)
Extracting QR codes from PDFs can be tricky since they are often embedded as images rather than text elements.
If you are looking for a straightforward way to handle this without building a complex OCR workflow in UiPath, you could try using a dedicated PDF extraction tool. There are several lightweight web-based utilities that specialize in pulling images or specific data from PDF files. Once you have the QR code image extracted, passing it through a standard barcode reader activity becomes much more reliable.
Another option is to use the “Export PDF Images” activity in UiPath first, and then point your QR scanner at the resulting folder. That usually saves a lot of headache compared to trying to read the QR code directly from the document page.


