Reputation: 6063
I have use the angularjs-pdf to show the pdf from remote in mobile app using Ionic Framework.
It shows the pdf in browser but it mobile device the blank screen.
Also I have use sample template example from here.
If it is not supported please suggest me plugin or another any way to display pdf in mobile app itself.
Upvotes: 2
Views: 1198
Reputation: 38
You can try to show the pdf in the webview using the
http://docs.google.com/viewer?embedded=true&url=<your-url>
to show the remote pdf, because in android, the webview doesn't directly support to view pdf.
Upvotes: 2
Reputation: 19748
Appears they do not support all browsers with the angualrjs-pdf or rather it's underlying pdf.js dependency doesn't support all mobile browsers https://github.com/mozilla/pdf.js/wiki/Frequently-Asked-Questions#what-browsers-are-supported
Believe you can "bake in" a browser that might do the trick, but the details I'm not sure about.
Would also be good to get some more details if there is any sort of error when you remote debug or any other indication of what the particular failure was.
Upvotes: 1