Open GoogleCodeExporter opened 9 years ago
private function exportTest(event:MouseEvent):void
{
var myPDF:PDF=new UnicodePDF(Orientation.PORTRAIT, Unit.MM, Size.A4);
myPDF.addPage();
myPDF.textStyle(new RGBColor(0xce0000));
myPDF.addText(”American”, 55, 50);
myPDF.textStyle(new RGBColor(0×000000));
myPDF.setFont(new ArialUnicodeMS(), 16);
myPDF.addText(”我是中国人!”, 55, 70);
var myFileRef:FileReference=new FileReference();
myFileRef.save(myPDF.save(Method.LOCAL),”generate.pdf”);
}
Thanks!
Will
P.S:
I'm using the new version (1.5.0beta) and found that when I use unicodePDF
generated
PDF documents Adobe Reader to open the error, but with the Foxit Reader to open
is
normal. Adobe Reader error as follows:
An error occurred while opening this document, read this document was a problem
(114).
Original comment by shrekwhoosah
on 2 Dec 2009 at 11:24
Thanks Will!
I havent try 1.5.0 beta currently.
I'll try it later to find out.
Best,
Original comment by Leo.East...@gmail.com
on 25 Apr 2010 at 1:06
Original issue reported on code.google.com by
Leo.East...@gmail.com
on 19 Oct 2009 at 1:55