pdf not accepting certain diacritics

pdf not accepting certain diacritics

Forum member · Nov 3, 2009
Presently my application is accepting some of the accent characters. We have just observed that the below characters are not accepted by the pdf. CNS RT DEGLUZCGIAENO Is there a way that these characters can be accepted?

Re: pdf not accepting certain diacritics

Forum member · Nov 3, 2009
I guess the characters are not printed here. The characters that we need are the Latin characters : 1. C,N,S,Z(Latin character with acute accent) 2. R,T,D,E,G,N,C (Latin character with caron sign) 3. L (Latin character with stroke) 4. U,O (Latin character with double acute) 5. G (Latin character with circumflex accent) 6. I (Latin character with a Macron) 7. A,E (Latin character with a Ogonek sign) Please let us know whether these characters can be accpeted by the dynamic pdf

Re: pdf not accepting certain diacritics

Support · Nov 3, 2009
These characters can be displayed in the output PDF as long as the font you are using supports them. Make sure that the OpenType or Type1 font that you use in your PageElement supports those characters. Thanks, ceTe Software Support Team

Re: pdf not accepting certain diacritics

Forum member · Nov 4, 2009
Hi, Thanks for the timely response.But I am still not able to resolve the issue. I have also checked some of the earlier posts and found that we might need to use TrueTypeFont or Type1 Font rather than the Helvetica built-in font of DynamicPDF which I am currently using shown as below. _currentPage.Elements.Add(new Label(Name,101, 23, 90, 15, Font.HelveticaBold, 10, TextAlign.Left, RgbColor.Black)); But we are not able to recognize the TrueTypeFont in our code though I have added the ceTe.Dynamic.Text as the namespace.I am a little new to this and am finding it difficult to understand. Can you let me know whether I am missing anything over here and the possible solution to accept such characters and how to check whether the font that we use in your PageElement supports those characters.

Re: pdf not accepting certain diacritics

Support · Nov 4, 2009
Hello, You will have to use the font file which has support for the characters which you are willing to add it to the PDF document.You will have to use the TrueTypeFont class which takes path of the font file and then you can use this font object to set the font for the text. It is not possible to determine whether the font which you are using has support for the characters dynamically. But you can determine this by looking into the output PDF document. You Below is the sample code for using the custom font. Document doc=new Document(); Page page=new Page(); TrueTypeFont font = new TrueTypeFont(@"Path for the font file"); ceTe.DynamicPDF.PageElements.Label label=new ceTe.DynamicPDF.PageElements.Label("ceTeSoftware",100,100,200,20,font,12,RgbColor.Black,TextAlign.Left); page.Elements.Add(label); doc.Pages.Add(page); doc.Draw(@"Path to save the PDF document"); Thanks, ceTe Software Support Team