quick6black / alivepdf

Automatically exported from code.google.com/p/alivepdf
1 stars 0 forks source link

error addImaageStream is throwing Image format not supported for now this error #260

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
var _pdf:PDF = new PDF();
var bytes:ByteArray = new ByteArray();
var displayObject:DisplayObject = Application.application.img;
/* this is Application.application.img */

var bitmapDataBuffer:BitmapData = new BitmapData (displayObject.width, 
displayObject.height, false,0 );

bitmapDataBuffer.draw (displayObject, displayObject.transform.matrix );

bytes = PNGEncoder.encode ( bitmapDataBuffer, true );

var resize:Resize = new Resize( Mode.NONE, Position.RIGHT );
_pdf.addImageStream(bytes,ColorSpace.DEVICE_CMYK,resize,-3,10,0,0,0);

please provide me solution. addImaageStream is throwing Image format not 
supported for now this error
What is the expected output? What do you see instead?
error

What version of the product are you using? On what operating system?
alive pdf 1.5 rc

Please provide any additional information below.

Original issue reported on code.google.com by vardhank...@gmail.com on 18 Jul 2010 at 7:29

Attachments:

GoogleCodeExporter commented 9 years ago
Same issue

Original comment by wrwcfans...@gmail.com on 7 Mar 2011 at 9:29

GoogleCodeExporter commented 9 years ago
AlivePDF does not support the alpha channel. You have to use the PNGEncoder 
which does not includes alpha channel.

Original comment by rahat.j...@gmail.com on 22 Jun 2011 at 5:32