Here is a new AlivePDF release which is including a new feature which has been requested very much : PNG Support !
I hope this release will help you guys (Rui Cruz) finishing your projects easily
New features :
- PNG Support :
The addImageStream method now support PNG images :
private var pngBytes:Class;
myPDF.addImageStream( new pngBytes() as ByteArray, 0, 0, 0, 0, 1, ImageResize.RESIZE_PAGE );
Now you can use the addImage method and ask for PNG compression through the new ImageFormat.PNG constant :
Of course, the quality parameter is ignored when PNG compression is asked.
As you may know, PNG compression is much faster than JPG compression. So this feature can be a good thing if your PDF has a lot of images.
For the moment only non transparent PNG images are supported, alpha channel support will come in the following days.
Download this new 0.1.4.2 release here