We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

writing "věci" into the document it will write "veci", so totally wrong and unsuable.

I am using "graphics.DrawString(Path.GetFileNameWithoutExtension(ImageFilenames[i]), font, PdfBrushes.Red, new PointF(0, 35));, behnd "Path.GetFileNameWithoutExtension(ImageFilenames[i])" will be a czech word but instead of writing "věci" into  the document it will write "veci", so totally wrong and unsuable.

1 Reply

KK Karthik Krishnaraj Syncfusion Team September 19, 2016 08:48 AM UTC

Hi Mvxyc,  
In order to render the unicode characters you need to set true for the parameter unicode before drawing it. I have attached the simple sample and code snippet for your reference, kindly check through it. Let me know if you have any concerns. 
Example: 
page.Graphics.DrawString("věci", new PdfTrueTypeFont(new Font("Arial", 12), true), PdfBrushes.Black, new PointF(0, 0)); 
Sample Link: 
Thanks, 
Karthik. 


Loader.
Up arrow icon