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).
Close Icon
Unfortunately, activation email could not send to your email. Please try again.
Close Icon
close icon
Vote for your favorite ebook
Succinctly Readers Awards 2020
Syncfusion Feedback

Can i use Cyrillic charset (1251)?

Thread ID:





117660 Nov 24,2014 08:24 PM UTC Sep 10,2018 12:13 PM UTC Xamarin.Forms 6
Tags: PDF
Asked On November 24, 2014 08:24 PM UTC


How i can change font charset in PDF document (for example) ?

What i can do with my code to see russian chars?

My sample:

PdfDocument document = new PdfDocument();
            document.PageSettings.Margins.All = 5;
            PdfPage page = document.Pages.Add();
            PdfGrid pdfGrid = new PdfGrid();
                var row = pdfGrid.Rows.Add();
                row.Cells[0].Value = "Наименование";
                row.Cells[1].Value = "Кол-во";
                row.Cells[2].Value = "Цена";
                row.Cells[3].Value = "Стоимость";
            pdfGrid.Draw(page, 0.0f, 0.0f);

Praveenkumar H [Syncfusion]
Replied On November 25, 2014 01:07 PM UTC

Hi Ivan,

Thank you for using syncfusion products,

Currently we are not supporting the Unicode characters in Syncfusion xamarin PDF, we have logged the feature request internally, and we will update you once the feature has been implemented.

Please let us know if you need further assistance.

With Regards,


Praveenkumar H [Syncfusion]
Replied On November 26, 2014 12:24 PM UTC

Hi Ivan,

A quick notes on previous update, the feature for supporting the Unicode characters in xamarin platform will be available in our next Syncfusion xamarin refresh release.

Please let us know if you need further assistance.

With Regards,


Benito Gomez
Replied On August 7, 2015 12:34 PM UTC

Hi, is that feature actually available?

I'm generating the pdf from PCL Portable Library on Xamrin.iOS, but seems to be the same problem, i can't write cyrillic characters.

Thanks in advance.

Praveenkumar H [Syncfusion]
Replied On August 10, 2015 12:29 PM UTC

Hi Ivan,

Thank you for your update,

We have added the Unicode character support in PDF portable library, please use the below code to load font and draw the Unicode text.

Stream fontStream = typeof(MainActivity).GetTypeInfo().Assembly.GetManifestResourceStream("PDFFormTesting.Assets.ArialUnicodeMS.ttf");

//loading true type font

PdfTrueTypeFont font = new PdfTrueTypeFont(fontStream, 24);

PdfDocument doc = new PdfDocument();

PdfPage page = doc.Pages.Add();

//drawing string
page.Graphics.DrawString("Наименование", font, PdfBrushes.Red, 0, 0);

Please try the above code snippet and let us know your result.

With Regards,

Replied On September 8, 2018 10:10 PM UTC

i am also looking for Cyrillic alphabet in pdf but  when search for ArialUnicodeMS.ttf on google, there is 14mb file size. this almost impossible to use in an mobile application :( 

Karthikeyan Chandrasekar [Syncfusion]
Replied On September 10, 2018 12:13 PM UTC

Hi Emil, 
Yes, you have to place the TTF file in the application to get it included in the PDF document. However, we have an optional workaround to get the TTF directly from the device at runtime using open source third party library SkiaSharp. Please refer the below code example for further details. 

            //Create new PDF document. 
            PdfDocument doc = new PdfDocument();           
            //Add page to the PDF document. 
            PdfPage page = doc.Pages.Add();             
            //Get font from device using Skia Sharp. 
            Stream fontStream = GetFontStream("Arial Unicode Ms"); 
            //Create new PdfTrueTypeFont instance. 
            PdfTrueTypeFont font = new PdfTrueTypeFont(fontStream, 12); 
            //Draw text. 
            page.Graphics.DrawString("Наименование", font, PdfBrushes.Black, PointF.Empty); 
            MemoryStream stream = new MemoryStream(); 
            //Save the PDF document 
            //Close the PDF document 

private Stream GetFontStream(string fontName) 
            SKTypeface typeface = SKTypeface.FromFamilyName(fontName, SKTypefaceStyle.Normal); 
            SKStreamAsset stream = typeface.OpenStream(); 
            if (stream != null && stream.Length > 0) 
                byte[] fontData = new byte[stream.Length - 1]; 
                stream.Read(fontData, stream.Length); 
                return new MemoryStream(fontData); 
                return null; 


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