Using a google drive viewer seems like a quick feature.
But moving forward, they can change or depreciate their API, and you will need to find a new way to support this. In addition, security is another consideration as your file is publicly available and downloadable.
I had a similar situation in a recent project, and we solved it using: pdf.js
This is a JS-based PDF parser with a good set of read functions. He is not as smooth as his own, but he did the work for us. The main advantage is that we controlled the codes and could open files from the file system of the device.
If you want to switch to a more native one, as in the application, then, as @Idan Adar mentioned the native library + cordova plugin, this is the way to go.
source share