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

Text with Greek Letters

Thread ID:





89848 Sep 9,2009 01:35 AM UTC Sep 11,2009 06:06 AM UTC WinForms 3
Tags: PDF
Administrator [Syncfusion]
Asked On September 9, 2009 01:35 AM UTC

How can I display greek letters properly? The intended text appears in the pdf file as


Sri Subhashini M [Syncfusion]
Replied On September 9, 2009 08:47 AM UTC

Hi Theodore,

Thank you for your interest in Essential PDF.

Drawing Greek string in PDF

We can draw the greek language text by drawing the text with PdfTrueType font. Kindly refer the below code snippet,

//Create font
Font f = new Font("Arial", 14);
PdfFont font = new PdfTrueTypeFont(f, true);
string path = @"..\..\Data\Essential PDF.rtf";

//Read the text from text file
StreamReader reader = new StreamReader("Greek.txt", Encoding.Unicode);
string text = reader.ReadToEnd();

//Create a brush
PdfBrush brush = new PdfSolidBrush(Color.Black);
PdfPen pen = new PdfPen(Color.Black);
SizeF clipBounds = page.Graphics.ClientSize;
RectangleF rect = new RectangleF(0, 0, clipBounds.Width , clipBounds.Height);

//Set the property for RTL text
PdfStringFormat format = new PdfStringFormat();
format.ParagraphIndent = 35f;
page.Graphics.DrawString(text, font, brush, rect, format);

Could you please do find the sample which demonstrates the above mentioned feature and let me know if you need any information?



Administrator [Syncfusion]
Replied On September 9, 2009 10:17 AM UTC

Thank you for your promt response.

It works as expected.

Sri Subhashini M [Syncfusion]
Replied On September 11, 2009 06:06 AM UTC

Hi Theodore,

Glad to hear that it worked fine.

Please let me know if you need any further assistance.



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