Hello,
First i have to say you do an excellent job on this project, the wiki and the api doc was well documented
secundo i'm french and my english is not very well...
I try to develop a Print function and for that i try to retrieve the bitmap data on a PageSide
Here is the code i use for print the cover and this work well!
var _print:PrintJob = new PrintJob();
var printOption:PrintJobOptions = new PrintJobOptions();
printOption.printAsBitmap = true;
var page:IPage = megazine.getPage(megazine.currentLogicalPage) as IPage;
var pageSide:IPageSide = page.even;
// Starts the OS's printing process by opening the printer
// dialogue, adding the read-only properties,
// and prepares the page to be sent to the spooler
_print.start();
// addPage add what is actually going to be printed
// (the Sprite object and any subsequent children)
_print.addPage(pageSide as Sprite, null, printOption);
// send finishes the print job and send the page
// to the print spooler.
_print.send();
_print = null;my cover is compose with only a swf
but when i try to print the 2 and 3 page with the same code i have only a black page...
so i try to retrieve the bitmap with the renderInto method of PageSide but he has the same effect
my page is compose with a swf and a video and the second page was only a swf (both black :'( )
Here is my code for print both page (2 and 3)
var _print:PrintJob = new PrintJob();
var printOption:PrintJobOptions = new PrintJobOptions();
printOption.printAsBitmap = true;
var page:IPage = megazine.getPage(megazine.currentLogicalPage) as IPage;
var pageLeft:IPageSide = page.odd;
var pageRight:IPageSide = page.even;
var leftBitmap:Bitmap = pageLeft.renderInto();
var rightBitmap:Bitmap = pageRight.renderInto();
var pLeft:Sprite = new Sprite();
var pRight:Sprite = new Sprite();
pLeft.addChild(leftBitmap);
pRight.addChild(rightBitmap);
// Starts the OS's printing process by opening the printer
// dialogue, adding the read-only properties,
// and prepares the page to be sent to the spooler
_print.start();
// addPage add what is actually going to be printed
// (the Sprite object and any subsequent children)
_print.addPage(pLeft, null, printOption);
_print.addPage(pRight, null, printOption);
// send finishes the print job and send the page
// to the print spooler.
_print.send();
_print = null;
Any idea or sugestion can help me a lot, i don't know what i can doing more..
Thanks
