Hi,
Is there a specific reason you want to code what is already coded and tested for you?
There are Forge components that allow you to view a PDF on a mobile device:
If you want to use them, you can still expect the code and see how they do it.
Regards,
Daniel