How to automate pdf files in Native iOS app?

In my ios App we are opening a pdf file from inside it.
I want to read data from that pdf file and click I agree button at the end.

Thanks,
Mummana Subramanya Vasu