Adding multi-lingual- multi-line text to an existing document

I was able to make this with v2.5.2.0 only with English text, using stamp.

Is there a way to accomplish this in ANY language (Chinese, Japanese, Arabic, Hebrew, Turkish, etc.), taking into account that the input is a Unicode string (.NET) ? Please also consider text flow in some languages is Right-to-Left.

Hi,

Thank you for considering Aspose.

You need to use FormattedText Class to stamp characters of languages like, Japanese, Italian, Chinese etc… About Multiline issue we have supported AddNewLineText method to add as many lines in FormattedText Class. Please try the following code.

[ C# ]

Stamp aStamp = new Stamp();

FormattedText formatText = new FormattedText("プリントにも最適", System.Drawing.Color.Blue, @"C:\Windows\fonts\ARIALUNI.TTF", EncodingType.Winansi, true, 20);

formatText.AddNewLineText("!人に見せたくなるデジカメ写真の作り");

aStamp.BindLogo(formatText);

Please note that for different languages, different Fonts will be used. For Japanese I have used “ARIALUNI.TTF”. Hope it helps.

Thanks.

Adeel Ahmad
Support Developer
Aspose Changsha Team