If your PDF file is electronically generated (you can manually select and copy text out of it), you can use the Extract text from PDF action.
For images and scanned PDF files, you will need to use the Extract text with OCR action.
-------------------------------------------------------------------------
If I have answered your question, please mark it as the preferred solution.
If you like my response, please give it a Thumbs Up.
If you are interested in Power Automate, you might want to follow me on LinkedIn at https://www.linkedin.com/in/agnius-bartninkas/