Unicode support in Community Edition

Unicode support in Community Edition

Forum member · Jul 16, 2007
I wonder how can I use Unicode (UTF8) strings in PdfGenerator? I saw some posts and it is needed to instantiate TrueTypeFont or Type1. But these elements are part of Professional/Enterprise edition. At the same time Version Features (http://www.DynamicPDF.com/Support/NET_Help_Library_07_03/Version Features.html) shows that Unicode is supported in Community Edition. So how can I prepare document with valid Unicode Fonts within it? Thanks.

Re: Unicode support in Community Edition

Support · Jul 16, 2007
Hello, You will need to use the Unicode values for the fonts that have their values stored in the private use area; for e.g. symbol fonts. Symbol fonts usually put them in the private use area from uE000 to uF8FF. In c# you can use the “\u” (i.e. \uE000”) escape sequence to specify the values. In VB you can use the ChrW method but you will need to use decimal instead of hex values. Thanks, ceTe Software Support Team

Re: Unicode support in Community Edition

Forum member · Jul 16, 2007
Hello, Thanks for the response but I don't catch it. As I understand I should have font that supports unicode. But there's no such in Community Edition (all they are Latin1). Or what am I missing? Could you please provide a sample code that demonstrates how to create Label that will contain some languages (for example: Franch+German+Russian+English)? Thanks.

Re: Unicode support in Community Edition

Support · Jul 16, 2007
Hello, There are no fonts included with the Community edition that has support for languages you mentioned except English. You will have to use any TrueType or Type1 font that has support for characters for French, German or Russian language. Thanks, ceTe Software Support Team

Re: Unicode support in Community Edition

Forum member · Jul 16, 2007
Does it mean that Unicode is not supported in Community Edition? Or is there a way to have it?

Re: Unicode support in Community Edition

Support · Jul 16, 2007
Hello, Unicode is supported in the Community edition. For e.g. if you are using Symbol font that is one of the core fonts, then you can use the Unicode value for the symbol you wish to display in the text string. Thanks, ceTe Software Support Team

Re: Unicode support in Community Edition

Forum member · Jul 16, 2007
Hello, I actually need to have correctly drawn PDF in different languages. But I do not see how it can be achieved. You say "There are no fonts included with the Community edition that has support for languages". But the same time you're saying that Unicode can be used with Symbol font. So as I can see it is impossible to support different languages. Maybe you will clarify the things in a code sample if I'm wrong? Thanks.

Re: Unicode support in Community Edition

Support · Jul 16, 2007
Hello, Using the Community edition you can use any of the included core fonts or CJK fonts. The symbol font is included as one of the core fonts and to display any character from the Symbol font you will have to use the Unicode value for the character within the font. To use German, French or Russian characters you will most likely need to use any TrueType or Type1 font. Thanks, ceTe Software Support Team

Re: Unicode support in Community Edition

Forum member · Apr 29, 2008
Hi, I am trying to display some Greek text in my PDF, but only a few of the characters are appearing. Most are appearing as white space on the page. I am using a TrueType font and have also tried substituting the Unicode value (ex. \u03B1) for each character, to no avail. Any other suggestions? I'm using DynamicPDF Generator for .Net (v4.0.0). I suspect I will have the same issue with other double byte languages (i.e. Simplified/Traditional Chinese, Japanese, Korean, etc). Thanks! Scott

Re: Unicode support in Community Edition

Support · Apr 29, 2008
Hi Scott, The bottom line here is that whatever font you use (True Type, Type1 or a built in font) that font must have a character defined for the Unicode value you are trying to display. So, if you are attempting to display Unicode values that and you are not seeing text appearing on your PDF it may be that the font you are using does not contain those characters. Double check this and make sure to use an appropriate font. If your font is appropriate and you are still not seeing the characters being output on the PDF them let us know and we can look into this further. Thanks, ceTe Software Support Team

Re: Unicode support in Community Edition

Forum member · Apr 29, 2008
Thanks! This makes perfect sense. I will check with the client to see if they have a font set that supports these double byte characters. The set they gave us in the past look like they only support the Latin character set.