I am using alivepdf for generating pdf files from my flex project. I am adding a string to my PDF object as follows
var str:String = "first line \n second line";
myPDFObject.addText(str,20,20);
But the above code does not show new line in the pdf which gets exported.
I finally manage to find a solution. Use addMultiCell instead of addText