PDF file color text convert as a hyperlink

I have PDF file in that color text convert as a hyperlink.
A. Must identify the blue color texts which will be having section(Dynamic) as keyword and ignore the section keyword without blue color. The format of the section keyword is not consistent. Sometimes it would be inside brackets.
B. In some cases, Infront of section keyword, module keyword will be mentioned, and we have to take which module the section belongs to and link only the text in blue color.
C. In some cases, the section keyword itself will be not there.

  1. How to achieve this through UiPath.
  2. How to do this
  3. What are all the activity can be used.

Expecting early response

@loginerror @Vibhor.Shrivastava @Palaniyappan @Lahiru.Fernando @mukeshkala @RAKESH_KUMAR_BEHERA

Read the PDF and get the Text
You can use regular expressions (regex) to identify URLs in text.

Here’s a simple regex pattern that can help you match URLs:

text = “Here is a sample text with a URL: https://www.example.com and another one http://google.com

url_pattern = r’https?://\S+|www.\S+’
urls = re.findall(url_pattern, text)

This regex pattern will match URLs that start with “http://” or “https://” and those that start with “www.”

You can modify the pattern to suit your specific requirements, but this should work for most common cases.