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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

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

Thread ID:





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

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 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. 
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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon 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.Close Icon