使用 aspose word 将信件转换为 PDF 时无法识别 Maori Macron

问题描述

我正在使用下面的代码使用 aspose word 插件将 html 转换为 pdf,但无法识别毛利宏并导致问题。

MemoryStream stream = new MemoryStream(data);
                    // load HTML file
                    Aspose.Words.LoadOptions loadOptions = new Aspose.Words.LoadOptions();
                    loadOptions.LoadFormat = LoadFormat.Html;

                    Aspose.Words.Document doc = new Aspose.Words.Document(stream,loadOptions);
                    foreach (Aspose.Words.Section section in doc)
                    {
                        section.PageSetup.PaperSize = PaperSize.Letter;
                        section.PageSetup.RightMargin = 20;
                        section.PageSetup.LeftMargin = 10;
                        section.PageSetup.TopMargin = 10;
                        section.PageSetup.BottomMargin = 10;
                    }
                    doc.Save(strPath,SaveFormat.Pdf);

转换前的示例文本:

enter image description here

转换后我们在 Pdf 中得到什么。

enter image description here

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)