Posted by a ceTe Software moderator
Hi,
You can use the corresponding Unicode values to add Greek characters to PDF. DynamicPDF Core Suite for .NET works well in a .NET Core 3.1 applications.
You can load any OTF or TTF font using OpenTypeFont object and set this to page elements through which you are adding text.
You will need to use a font that supports Greek language characters.
Here is a code sample:
Document document = new Document();
Page page = new Page();
document.Pages.Add(page);
string fontPath = @"arialbd.ttf";
OpenTypeFont font = new OpenTypeFont(fontPath);
//Unicode value to add Greek character
TextArea area = new TextArea("\u03B1", 0, 100, 200, 12, font, 12);
page.Elements.Add(area);
document.Draw(@"C:\Temp\fontOutput.pdf");
Thanks,
ceTe Software Support Team