I tried this before with an earlier version of AlivePDF and it didn’t go well. AlivePDF 0.1.5 RC has proven more fruitful.
First, the goods:
DryByDesign_AlivePDF_Demo (zip)
DryByDesign_AlivePDF_Demo (air package)
[cert: dbd, pw: dbd]
The problem:
PDF creation is limited [read: not natively supported] in Adobe Air. In the past I’ve detailed PDF Cross Scripting, as well as using jsPDF for PDF creation with pure javascript.
However, AlivePDF offers a very robust toolbox for PDF creation and manipulation. Until now all the tutorials, coverage, and indications have been that this is a Flex tool. [notice: Until now!]
The solution:
The process goes something like this:
- Pull the library.swf file out of the AlivePDF.swc file.
- Add the SWF file to your application.
- Create an alias file for any of the functions listed in the documentation you may need/want.
- Enjoy!
The files above offer a working example using a Aptana Studio project.