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”);
myFont.setEmbedded(true);

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

@AdityaSingh

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");
page.Paragraphs.Add(tf);
doc.Save(dataDir + "russian.pdf");

russian.pdf (29.8 KB)

1 Like