'What is the python code for opening the pdf file & searching the word in the pdf file

I want to know how can I do this using python that searching the word in the search box and that words will be shown with highlighted, like below its a pdf file's screenshot where I have shown what I need



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source