Quantcast
Channel: Aspose.Pdf Product Family
Viewing all articles
Browse latest Browse all 3131

Problem in adding Burmese text to PDF

$
0
0
Hi,

I am using Aspose.pdf and adding Burmese Text to my pdf and Bureme Text is broken into consonants and vowels. Please refer to attached screenshot Capture.png. I found that you have recently fixed something similar for Aspose.word, hope this also can be fixed. 

Code I am using is :
        Aspose.Pdf.Document document = new Aspose.Pdf.Document();
        Aspose.Pdf.Page pdf = document.Pages.Add();
        FloatingBox titles = new FloatingBox();
        var newText = new TextFragment("");
        var segment = new TextSegment(Burmese_Text);
        Aspose.Pdf.Text.Font myanmarFont = FontRepository.FindFont("Myanmar3");
        myanmarFont.IsEmbedded = true;
        segment.TextState.Font = myanmarFont;
        newText.Segments.Add(segment);
        titles.Paragraphs.Add(newText);
        pdf.Paragraphs.Add(newText);
        document.Save(Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.Desktop), "HelloWorld1234.pdf"));

Regards,
Ankit Singhal

Viewing all articles
Browse latest Browse all 3131

Trending Articles