Image inside PDF

I need to extarct the text of the Image inside a PDF, how to do that?

You can only extrac the text of everything on the PDF page, you can not extract a certain part e. g. only the image.

Or you use Ui Vision and do screen scraping