在addPage()之後一定要設定 textStyle,setFont ,這樣才不會出現錯誤
private var myPDF:PDF = new PDF(Orientation.LANDSCAPE, Unit.MM, Size.A4);
myPDF..addPage();
myPDF.textStyle( new RGBColor(0), 1 );
myPDF.setFont (FontFamily.ARIAL,Style.BOLD, 12 );
var grid1:Grid = new Grid(arrayC.toArray(), 200, 200, new RGBColor(0x00CCFF), new RGBColor (0x00FFFF), new RGBColor(0x0FF0A1 ),true, new RGBColor ( 0x021211 ),3, Joint.ROUND );
myPDF.addGrid(grid1,5,5,true );