Allowing the agent to extract information from a pdf

Yeah I have tried it and obviously it does not work. What I mean is that in some way i need to provide the agent a tool that allows it to extract information from the attached pdfs, but i do not know how to do it