How to search text in PDF Viewer by using python script?

Is there anyone who know how to search text in PDF Viewer by using python script? After searching, the page can skip to the highlight postion automatically.
Thanks

Hello,

Both the Vision and Perspective versions have search functionality already available, either by using Ctrl-F within Perspective or the "Search Document" button within the Vision component. So creating a search function with Python is not needed unless there is further functionality you want to implement. If that is the case, would you describe what else you are trying to do within the script?