How to automate pdf files in Native iOS app

I am automatiing a native iOS (only iPad) app using appium and Java where I need to automate a .pdf file by swiping it to the last page and then clicking on checkbox to agree the rules and click submit. But when I open pdf file and try to inspect elements using appium inspector, the appium loses handle of the application and app closes. Have anyone done this type of trial before? Any help is welcome.

Hey Hi Shreyas,

I Have the similar Requirement could you please let me know did the issue got resolved ? if yes could you please let me know the approach.

I also have a similar requirement and I posted on this link:

Does anyone have an update about that?

Thank you very much