AIR / Flex - AlivePDF print whole canvas

Is there a possibility to print a whole canvas UI element (and all its children) using AlivePDF?

I know that the normal way would be to add each element separately, but if there is whole bunch of elements (text, image..) that is a problem...


One possible way would be to create an image from the Canvas control and to add the image to the PDF. That might be lower res than you would like, and the text would not be selectable.

    var myBitmapData:BitmapData = new BitmapData(canvas.width, canvas.height);


    myPDF.addImage(new Bitmap(myBitmapData, PixelSnapping.AUTO, true),
                    0, 0, canvas.width, canvas.height, 
                    ImageFormat.JPG, 100, 1);

Need Your Help

Find number of months weeks and day from a number


Say I have the number 234 edit (in days). How can I find how many months ,weeks and days?

Modeling time as lazy numbers

haskell audio real-time lazy-evaluation interactive

I am trying to write an interactive, realtime audio-synthesis thing in Haskell,