JSPDF Plugin for Titanium Mobile Applications
Objective-C C C++ Other
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
.settings Initial commit Aug 17, 2011
Resources Initial commit Aug 17, 2011
build Initial commit Aug 17, 2011
.gitignore Project Readme Aug 17, 2011
.project Initial commit Aug 17, 2011
CHANGELOG.txt Initial commit Aug 17, 2011
LICENSE Initial commit Aug 17, 2011
LICENSE.txt Initial commit Aug 17, 2011
README.md markDOWN!! Aug 17, 2011
manifest Initial commit Aug 17, 2011
tiapp.xml Initial commit Aug 17, 2011



TiJSPDF is a JSPDF plugin for Titanium Mobile applications that allows you to generate your PDFs using the JSPDF library and manipulate them within your Titanium Mobile application.

This plugin is maintained separately from Titanium and is not currently supported by Appcelerator through any premium or community support offereings.

Please double check all of your code before deploying an app with this plugin. It took all of 10 minutes to port and I cannot speak to the practices of the original author. If you see something wrong and you think that you know a better way, then fork it and git 'er done.


Visit the JSPDF blog post for PDF creation guidance.

In The Box

This project contains an example application using a demo from the JSPDF demo page. If you'd rather just get going on making your own app, you can download just the modified js files from the 'Downloads' section. Just drop the uncompressed files into your 'Resources' folder and start building.


Ripped straight from the included example app.

// Include the JSPDF libraries

var doc = new jsPDF();
doc.text(20, 20, 'Hello world!');
doc.text(20, 30, 'This is client-side Javascript, pumping out a PDF.');
doc.text(20, 20, 'Do you like that?');

var file = Ti.Filesystem.getFile(Ti.Filesystem.tempDirectory, 'test.pdf');
var pdfview = Ti.UI.createWebView({width:'100%',height:'100%',data:file});
var win = Ti.UI.createWindow();

And thats about it.