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.
Unfortunately, activation email could not send to your email. Please try again.

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

Thread ID:





126024 Sep 18,2016 04:43 PM Sep 19,2016 04:48 AM ASP.NET MVC 1
Tags: PDF
Asked On September 18, 2016 04:43 PM

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.

Karthik Krishnaraj [Syncfusion]
Replied On September 19, 2016 04:48 AM

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. 
page.Graphics.DrawString("věci", new PdfTrueTypeFont(new Font("Arial", 12), true), PdfBrushes.Black, new PointF(0, 0)); 
Sample Link: 


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.