Spending hours to add base64 encoded string as image to PDF by addImageStream
with no success:
var decoder:Base64Decoder = new Base64Decoder();
decoder.decode(imgdata);
var ba:ByteArray = decoder.toByteArray();
pdf.addImageStream(ba, ColorSpace.DEVICE_RGB);
The string data itself looks good, but addImageStream
breaks PDF generation for unknown reason, whats wrong?
using Apache Flex SDK 4.14 with AlivePDF 0.1.5 RC
Update|Solved: With JPEG type it works, finally found that alivePDF has issues with PNG transparency which is returned internally when encoding, its by default even if there isnt transparency in image and cant be turned off.