So, I have an app that creates a very large drawing of Sprites and randomly 
places them in a DisplayObject (mainHolder) on stage.

I am trying to create a print option that will print the mainHolder by breaking 
it up into chunks of 1000 by 1000 pixels per page. I am able to do this and 
then put it into a multi-page PDF. 

THE PROBLEM:
The issue is because the DisplayObject is larger than the area taken by Sprites 
I end up with blank white pages (4 extra pages of nothing).  Is there a way to 
create a mask or something and then compare the mask to the bitmapdata 
underneath to see if any pixel data is any color but white? Or go over the 
entire page to see if any pixels are colored, pixel by pixel and if not then 
throw the page out?

Jason

Reply via email to