I've written a web application to create and download a pdf document on client-side using [jsPDF](https://github.com/MrRio/jsPDF) and [Downloadify](http://raldenhoven.github.io/downloadify/). jsPDF prepares the document and Downloadify downloads it as a pdf. Everything works fine.

I'm trying to replicate this behavior on a PhoneGap app (using FileWriter instead of Downloadify). [FileWriter](http://docs.phonegap.com/en/1.8.0/cordova_file_file.md.html#FileWriter) handles writing onto files. Using FileWriter, I've created txt files but couldn't create a pdf.

1. Is is possible to create a PDF document using Cardova at all?
2. If not are there any plugins around?