Extract Product Name and Price from PDF without using OCR

Hello @Priyanga_Karnan and welcome to the community.

First you need to read the PDF file and understand what your text looks like in UiPath.

Step 1:
CLick on Manage Packages in UiPath.
Find this package in the official package section: UiPath.PDF.Activities
image
Use a Read PDF activity.
image

Then use a “Write Line” activity - export the result into notepad. Keep it handy.

Step 2: Learn Regex or Make a Post
Be sure to include:

  • A sample (notepad file from step 1)
  • Highlight the expected OutPut
  • Tell us about the Pattern of the text.

(If you do this you will have a robust Regex Pattern in likely less than an hour or two).

Check out my Regex New Users MegaPost to learn about Regex.

You will need to use a Matches activity (or Assign) to get the result into the desired string variable ready to insert into your process.

I hope this helps.

Plenty of gurus on the forums.

Cheers

Steve

1 Like