- Email Support
- PDF Display Support
It turns out that our needs for this functionality are not uncommon.
Matt Kane created a github project called phonegap-plugins that solves both of these problems.
Thanks for the plugins Matt, they have been a great help.
We used the EmailComposer plugin to solve the email support feature and the ChildBrower plugin to solve the pdf display support feature. The EmailComposer plugin solved our need with no additional changes. The ChildBrowser plugin, however, needed to be slightly modified to fit our use-case.
The ChildBrowser plugin allows external webpages to be displayed within a PhoneGap application. This is exactly the functionality we wanted to render our pdf files, but the ChildBrower plugin was designed to load external files not local files that are distributed with the app.
We made the following additions to the ChildBrower plugin to allow it load local pdf files.