Hi Friends,
I am using AlivePDF to generate the PDF document from a Grid which is
displayed in a popup. Below is the code to do so.
public function generatePDF():void
{
myPDF = new PDF(Orientation.LANDSCAPE, Unit.MM, Size.LETTER );
myPDF.addEventListener(Event.COMPLETE, onComplete);
myPDF.setDisplayMode (Display.FULL_WIDTH);
//Getting all children of my grid
var arr:Array =
tlProductList.getChildren();
var i:int = 0;
for(i = 0; i< arr.length; i=i+1)
{
myPDF.addPage();
myPDF.addImage(arr[i] as CartItem);
}
myPDF.save(Method.REMOTE, clsGlobalVars._pdfCreatorURL,Download.INLINE,
"generated1.pdf" );
}
For each item in Grid I need to create a page or may be I will have to
keep to items on a single page. When I implement this my pdf file contains
only single Item.Pages gets created but except the first one rest are all
blanks.Please Guide me or let me know where I am wrong.
Thanks & regards
Vishal
--
You received this message because you are subscribed to the Google Groups "Flex
India Community" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/flex_india?hl=en.