iPad PDFs
Generating, Saving, and Sharing PDFs
with the PhoneGap Cordova Library
Isaac Strack
Use Case
- Create In JavaScript
- Process into PDF
- Display on iPad
Initial Solution
- Create Server-side API (CQ5)
- Generate JSON/API Script on Client
- Send to Server - Wait for Response
- Display in-app, or eMail a copy
Ask your Friends!
- Asked everyone we knew
- Investigated on our own
- Piotr mentioned JSPDF.com
Round 2
Can we use the existing Save library?Can we save directly?Can we email it? Dropbox it? Creative Cloud it?Can we use the built-in Safari 'Open with...' ?Can we use local storage?
Cordova: A New Hope
- Ask the same question enough times...
- ...in new ways [objective-c]
Vince Parsons
to the rescue!
- Possible to use clipboard function
- Possible to use native "Open in..."
Now we have to learn PhoneGap
- Had only previously used Build
- Big Learning Curve
- Still didn't know how to debug / test
Getting it to actually work
Clipboard Logic
Vince Saves The Day
(again)
Simple, Elegant Solution
The Result
Simple Scripting language