Multipage printing class for AS3June 12, 2009 by: Christian
A little off topic, but it is something I have been in need of for a long time: multipage printing. I’ve been searching to find a class for AS3 that does this, but I have only found instructions and basic explanations on how to use the printjob class of AS3. So I used to tell my clients, uuh, printing is quite difficult in flash and they were always brave and I could skip it. But it has become more and more demanded and so I have created my own class. You can download it for free. Any feedback is highly appreciated!
How does it work?
It takes the content (movieclip or sprite), resizes it (keeping its aspect ratio) so that the width fits to the width of the selected paper format (landscape or portrait) and calculates the number of pages.
Try it out in the SWF below:
You can find the documentation and download of all source files here.
Here is a real example that makes use of the multipage printing class.