Drawing unicode text

Drawing unicode text

Forum member · Dec 13, 2010
Hi Support, I am facing a problem while drawing a Unicode text. The details are below: code snippet: string strLabel = "??????? ??????"; System.Drawing.Font f = new System.Drawing.Font("Arial Unicode MS", 14f); Label label = new Label( strLabel, 0, 0, 504, 100, ceTe.DynamicPDF.Font.LoadSystemFont(f), 18, TextAlign.Center ); page.Elements.Add( label ); document.Pages.Add( page ); document.Draw( "Unicode.pdf" ); After execution, in the generated document, the second word of the input text is changed (characters are unordered). Could you please suggest me a suitable solution for this ASAP. Thank in advance. Regards, Pravin.

Re: Drawing unicode text

Forum member · Dec 13, 2010
Hi , It seems i cannot post the unicode text over here. Can you suggest me suitable way to provide you the unicode text, so that you can reproduce the issue. Regards, Pravin.

Re: Drawing unicode text

Support · Dec 13, 2010
Hello, You can add Unicode text to the PDF document without any problem using our DynamicPDF Generator product. You will have to use the OpenTypeFont class and create an object of it using the font file path. You will have to use this font object to set it to the page elements of our API. Also you will have to make sure that the font which you are using has support for the characters and the text which you are adding to the PDF document. Please refer the documentation on OpenTypeFont class at: http://www.DynamicPDF.com/Support/NET_Help_Library_10_03/Open_Type_Fonts.html . If you still continue getting the similar behavior then please send over the code, text which you want to add to the PDF document and also the output PDF document to our support team at: [^a|mailto:support@cete.com|opennewiwndow|support@cete.com^] so that they can look into this further. Thanks, ceTe Software Support Team.

Re: Drawing unicode text

Forum member · Dec 13, 2010
Hi, Thanks for the quick update. I also tried using the method that you suggested. But it didn't work. I have mailed the complete details to the mentioned email address. Kindly reply me ASAP. Regards, Pravin.