I'm trying to center my printJob content and I'm unable to do it on the printed page. Is there some kind of limitation on centering the content on the actual printed page?

Thanks for any help.

Here's the code:

print_btn.onRelease = function() {
        var pj:PrintJob = new PrintJob();
        var success = pj.start();
        var ratio;
        if(success) {
                if(pj.pageHeight > pj.pageWidth) {
                                ratio = pj.pageWidth/cert._width*100;
                } else {
                                ratio = pj.pageHeight/cert._height*100;
                }
                cert._xscale = ratio;
                cert._yscale = ratio;
                cert._x = (pj.pageWidth - cert._width)/2;
                cert._y = (pj.pageHeight - cert._height)/2;
                pj.addPage(cert, {}, {printAsBitmap:true}, 1);
                pj.send();
        }
        delete pj;
        resetCert(); //sets it back to normal
}

-Jim
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to