问题描述
我正在使用下面的代码使用 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);
转换前的示例文本:
转换后我们在 Pdf 中得到什么。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)