we have licensed version of our product.
I want to create a pdf which should support multiple national languages.
Is it possible to generate pdf with national characters like chinese, german, japanese etc.
we have the contents in multiple languages in my database. Just I need to display it in the pdf.
My question is does it support multi language chars.?
Following link does not help. I want to display different language characters.
http://www.aspose.com/docs/display/pdfnet/Fonts+embedding+while+creating+PDF
Hi Dinesh,
Thanks for your inquiry. Aspose.Pdf supports multi language chars. You may use Arial Unicode MS font as it supports the characters. Please check following code sample snippet for the purpose. Hopefully it will help you to accomplish the task.
Document textdoc = new Document();<o:p></o:p>
Page page = textdoc.Pages.Add();
//Chinese
TextFragment textc = new
TextFragment("The
Chinese Text Project (CTP; Chinese: 中國哲學書電子化計劃) is a digital library project");
//Set text properties
textc.TextState.FontSize = 8;
textc.TextState.Font = FontRepository.FindFont("Arial Unicode MS");
//German text
TextFragment textg = new
TextFragment("Es
war ein super-schwüller Tag. Wir konnten die Hitze kaum ertragen und
entschlossen ");
//Set text properties
textg.TextState.FontSize = 8;
textg.TextState.Font = FontRepository.FindFont("Arial Unicode MS");
//Japanese text
TextFragment textj = new
TextFragment("ラドクリフ、マラソン五輪代表に 1万m出場にも含み");
//Set text properties
textj.TextState.FontSize = 8;
textj.TextState.Font = FontRepository.FindFont("Arial Unicode MS");
//Add a new text paragraph in
paragraphs collection and pass the TextFramment object
page.Paragraphs.Add(textc);
page.Paragraphs.Add(textj);
page.Paragraphs.Add(textg);
//Save resultant PDF file
textdoc.Save(myDir + "TextPDF.pdf");
Please feel free to contact us for any further assistance.
Best Regards,
Thanks Tilal :) Thanks for your confirmation.
We are using older version of Aspose.PDF I guess. It is not accepting Textfragment classes.
Could you please tell us what is the latest version of Aspose PDF which supports these multi language characters and these Textfragment classes?
Hi, I have downloaded the 9.7 version of Aspose.pdf and we are using VB.net.
It would be great help if you could please upload the code for VB.NET.
Also, if you could please let us know can we use these characters with HTL tags as well.
Also, if Aspose componenet supports following languages
Français Canadian (French - Canadian)
Czech (Czech)
Nederlands (Dutch)
Français (French)
Deutsch (German)
Italiano (Italian)
¿¿¿ (Japanese)
¿¿¿ (Korean)
Español Latinoamericano (Spanish - Latin American)
Polski (Polish)
Português - brasileiro (Portuguese - Brazilian)
Russian (Russian)
¿¿-¿¿ (Chinese - Simplified)
Español (Spanish)
Thai (Thai)
¿¿-¿¿ (Chinese - Traditional)
Sorry, I mean
Also, if you could please let us know, can we use these multilingual characters with HTML tags as well.
Hi Dinesh,
Thanks for your feedback.
Dinesh_Rathinam: Could you please tell us what is the latest version of Aspose PDF which supports these multi language characters and these Textfragment classes?
I have used Apose.Pdf for .NET 9.7.0 for testing the scenario and currently it is latest version of Aspose.Pdf for .NET. You may download latest version from
download section.
Please feel free to contact us for any further assistance.
Best Regards,
I am using 9.7, i want to know the VB.net code which will help me display characters in different languages. Please help!!
Hi Dinesh,
The required code snippet is given below.
[VB.NET]
Dim
textdoc As Document
= New Document()<o:p></o:p>
Dim
page As Page
= textdoc.Pages.Add()
'Chinese
Dim
textc As TextFragment
= New TextFragment("The Chinese Text Project (CTP; Chinese: 中國哲學書電子化計劃) is a digital library project")
'Set
text properties
textc.TextState.FontSize = 8
textc.TextState.Font = FontRepository.FindFont("Arial Unicode MS")
'German text
Dim textg As TextFragment = New
TextFragment("Es
war ein super-schwüller Tag. Wir konnten die Hitze kaum ertragen und
entschlossen ")
'Set text properties
textg.TextState.FontSize = 8
textg.TextState.Font = FontRepository.FindFont("Arial Unicode MS")
'Japanese text
Dim textj As TextFragment = New
TextFragment("ラドクリフ、マラソン五輪代表に 1万m出場にも含み")
'Set text properties
textj.TextState.FontSize = 8
textj.TextState.Font = FontRepository.FindFont("Arial Unicode MS")
'Add a new text paragraph in paragraphs
collection and pass the TextFramment object
page.Paragraphs.Add(textc)
page.Paragraphs.Add(textj)
page.Paragraphs.Add(textg)
'Save resultant PDF file
textdoc.Save(“c:/pdftest/Multi-Language_TextPDF.pdf”)
Thanks Tilal ! Thanks Nayyer!
Thanks for clarifying my doubts and your support.
--Dinesh R
Hi Diesh,
Thanks for your feedback. It is good to know that provided information help you to accomplish your requirements.
Please feel free to ask any question or concern, we will be more than happy to extend our support.
Best Regards,