使用aspose.words把Word文档转换为PDF文件后,PDF文件中的英文和数字正常显示,中文文字和中文标点符号全部变为方框,不知道怎么回事,尝试了很多方法都没有解决问题,请给予帮助,谢谢!
附代码:
public static void Word2PDF(Document doc, string savePDF)
{
try
{
foreach (Section sec in doc.Sections)
{
sec.PageSetup.SectionStart = SectionStart.EvenPage;
}
PdfSaveOptions saveOptions = new PdfSaveOptions();
doc.Save(savePDF, saveOptions);
}
catch (Exception ex)
{
log.Error("转换错误", ex);
}
}