Slow multi-page printing
I'm using the PrintJob class in AS3 to print a multipage list. There is a little graphic header, my company logo in the footer and then just a long text list. It varies from 2 to 6 or so pages.
Everything seems to be working, but it seems to take an awful long time to get all the pages out. I'm wondering if anybody has any ideas of where to look? Or is it just always slow?
Here is the code I'm using:
private function doPrint(a:Array) {
var pj:PrintJob=new PrintJob();
if (pj.start()) {
var orgScale:Number=a[0].scaleX;
var count:Number=0;
for (var i=0; i<a.length; i++) {
a.width=pj.pageWidth;
a.scaleY=a.scaleX;
pj.addPage(a);
count++;
}
if (count>0) {
pj.send();
}
}
pj=null;
a[0].scaleX=a[0].scaleY=orgScale;
}
The array is an array of the various movieclips that make up the pages.
