RafaelOliveira / alivepdf

Automatically exported from code.google.com/p/alivepdf
0 stars 0 forks source link

Chinese Language Support Problem? #162

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Dear All,
As Alivepdf 1.5.0 alpha is released already, have anybody successfully use
Chinese or other kind of languages base on utf-8?

Can Thibault kindly help release a demo?

Many thanks!

Original issue reported on code.google.com by Leo.East...@gmail.com on 19 Oct 2009 at 1:55

GoogleCodeExporter commented 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

GoogleCodeExporter commented 9 years ago
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