We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Trying to write Russian text into PDF

Hi Team,

I have purchased aspose pdf license, but i’m facing an issue when i’m writing Russian text into the PDF.

myFont = FontRepository.openFont(“C://Windows//Fonts//times.ttf”);

Номер документа
this is the sample russian text
but the resultant output is coming like this
??? ???:


Would you please make sure that used font supports Russian Language characters? We have tested the scenario in our environment using following code and output PDF was fine:

Document doc = new Document();
Page page = doc.Pages.Add();
TextFragment tf = new TextFragment("Номер документа Дата:");
tf.TextState.Font = FontRepository.FindFont("Arial");
doc.Save(dataDir + "russian.pdf");

russian.pdf (29.8 KB)

1 Like