Posted by a ceTe Software moderator
Hi,
We tested this and are able to add Hindi and English language text to a PDF using a single TextArea.
Here is a code sample:
Document document = new Document();
Page page = new Page();
document.Pages.Add(page);
OpenTypeFont hindiFont = new OpenTypeFont(@"Nirmala.ttf");
TextArea area1 = new TextArea("Test Hindi text: नमस्ते added.", 0, 100, 200, 12, font, 12);
page.Elements.Add(area1);
area1.Font = hindiFont;
document.Draw(@"C:\Temp\fontOutput.pdf");
If you continue facing an issue then please send over following information to
support@dynamicpdf.com so we can look into it further.
1. Simple Console application which uses static data to recreate the behavior.
2. Font files used.
3. Output PDF.
Thanks,
ceTe Software Support Team