Perhaps not everyone knows that you can create / print the PDF in real time with Flash Actionscript 3.0 and PHP.
To begin, I suggest you to download the library of AlivePDF by ByteArray.org at the following address: http://code.google.com/p/alivepdf/downloads/list.
You will find the documentation here: http://alivepdf.bytearray.org/alivepdf-asdoc/.
Then you will need the class PNGEncoder.as, found here: https://github.com/mikechambers/as3corelib
In this tutorial we’ll see how that library works with Actionscript 3.0 to create PDF in real time.
Important: this class works only on web servers cause of some security aspects of the SWF. Then try it on a web server or locally with MAMP or XAMPP.
The PDF file will be created in a folder called "pdf" that resides in the same directory as the file create.php.
First of all I am writing a PHP file (create.php) that is able to create a PDF from the bytes that Flash will generate [...]
No comments:
Post a Comment