I have recently tested these two libs:

- alivepdf
- purepdf

I ended up using alivepdf. Smaller lib size, better documented and it worked with the first set up.

The code to provide the download link:

import flash.events.IOErrorEvent;
import flash.net.FileReference;
...
        
var fileName : String = _fileName + ".pdf";

try {
        var f : FileReference = new FileReference();
        f.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler);
        f.save(_pdf.save(Method.LOCAL), fileName);
} catch (e : Error) {
        trace ("COULD NOT SAVE PDF");
}

...

private function ioErrorHandler(event : IOErrorEvent) : void {
        trace ("PERHAPS THE DOCUMENT IS OPEN");
}




Am 28.10.2011 14:56, schrieb Rodrigo Augusto Guerra:
hi all,

I have a flash swf that generates a report inside a mc then print it. ok. now 
my client wants a button 'save to pdf.' not just print...

The more automated the better, I wonder if someone has any hint on this, some 
tool that I can install on th server and it does that for me ...

thanks,
rodrigo
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to