Re: [Flashcoders] Printing Canvas

2009-10-23 Thread Kevin Holleran
I am trying to use AlivePDF to simply export the entire contents of the canvas to a PDF. All the examples I am finding include using the API to draw a PDF, I just want to take what I already have on my canvas and send that to a PDF. Does anyone know a way to do this with AlivePDF? Thank you.

Re: [Flashcoders] Printing Canvas

2009-10-23 Thread Ian Thomas
Hi Kevin, To set what's going to the printer to fit: Get the print pageWidth/pageHeight from the PrintJob object (after calling start()). Use the scaleX, scaleY of the clip you are printing to make it fit within that pageWidth/pageHeight. Call addPage(), passing the clip. Call

Re: [Flashcoders] Printing Canvas

2009-10-23 Thread Kevin Holleran
How can a copy the display object into another so that I can manipulate the coped object but not the original? I want to copy the object, not the reference. Thanks. Kevin ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com

Re: [Flashcoders] Printing Canvas

2009-10-23 Thread Kevin Holleran
On Fri, Oct 23, 2009 at 12:48 PM, Kevin Holleran kdaw...@gmail.com wrote: How can a copy the display object into another so that I can manipulate the coped object but not the original?  I want to copy the object, not the reference. Thanks. Kevin Okay I have the following code:

Re: [Flashcoders] Printing Canvas

2009-10-23 Thread Ian Thomas
You could take a bitmap copy (BitmapData.draw()). Alternatively, you could just rescale the original, print, then scale back again... Ian On Fri, Oct 23, 2009 at 5:48 PM, Kevin Holleran kdaw...@gmail.com wrote: How can a copy the display object into another so that I can manipulate the coped

Re: [Flashcoders] Printing Canvas

2009-10-23 Thread Ian Thomas
Try copying using BitmapData, not ByteArray. Take a visual snapshot, not an object snapshot. Ian On Fri, Oct 23, 2009 at 6:03 PM, Kevin Holleran kdaw...@gmail.com wrote: On Fri, Oct 23, 2009 at 12:48 PM, Kevin Holleran kdaw...@gmail.com wrote: How can a copy the display object into another so

Re: [Flashcoders] Printing Canvas

2009-10-23 Thread Kevin Holleran
On Fri, Oct 23, 2009 at 1:11 PM, Ian Thomas i...@eirias.net wrote: Try copying using BitmapData, not ByteArray. Take a visual snapshot, not an object snapshot. Ian On Fri, Oct 23, 2009 at 6:03 PM, Kevin Holleran kdaw...@gmail.com wrote: On Fri, Oct 23, 2009 at 12:48 PM, Kevin Holleran

Re: [Flashcoders] Printing Canvas

2009-10-23 Thread Karl DeSaulniers
Hi Ian, Is this an AS3 examlpe, or can that be done in AS2? Karl Sent from losPhone On Oct 23, 2009, at 11:33 AM, Ian Thomas i...@eirias.net wrote: Hi Kevin, To set what's going to the printer to fit: Get the print pageWidth/pageHeight from the PrintJob object (after calling start()).

Re: [Flashcoders] Printing Canvas

2009-10-23 Thread Ian Thomas
Karl, It'll work in either AS2 or AS3. Ian On Fri, Oct 23, 2009 at 9:41 PM, Karl DeSaulniers k...@designdrumm.com wrote: Hi Ian, Is this an AS3 examlpe, or can that be done in AS2? Karl Sent from losPhone On Oct 23, 2009, at 11:33 AM, Ian Thomas i...@eirias.net wrote: Hi Kevin,  To

Re: [Flashcoders] Printing Canvas

2009-10-23 Thread Karl DeSaulniers
Cool. Thx Ian. Karl Sent from losPhone On Oct 23, 2009, at 4:19 PM, Ian Thomas i...@eirias.net wrote: Karl, It'll work in either AS2 or AS3. Ian On Fri, Oct 23, 2009 at 9:41 PM, Karl DeSaulniers k...@designdrumm.com wrote: Hi Ian, Is this an AS3 examlpe, or can that be done in AS2?

[Flashcoders] Printing Canvas

2009-10-20 Thread Kevin Holleran
Good afternoon, I wrote a little flash app that loads coupons from an XML file and formats them to display on a webpage. When going to print these, I simply sent the canvas to the printer. However, the side of the coupons are cut off. Is there a way to shrink what is sent to the printer

Re: [Flashcoders] Printing Canvas

2009-10-20 Thread Karl DeSaulniers
I would like to know this as well or is there a way to export to a postscript file directly from flash? or to print the contents of a MC based on the contents dimensions and not the MCs. My contents keep getting cut off too. Thx Karl On Oct 20, 2009, at 2:45 PM, Kevin Holleran wrote: