将Word转换为PDF-不显示条形码字体
我正在使用将Word转换为PDF-不显示条形码字体,pdf,.net-3.5,docx,aspose.words,Pdf,.net 3.5,Docx,Aspose.words,我正在使用Aspose.Words.dll将word文档转换为PDF 这是我的密码 var fileName = System.AppDomain.CurrentDomain.BaseDirectory + Guid.NewGuid().ToString(); File.WriteAllBytes(fileName + ".docx", wordBytes); var doc = new Aspose.Words.Document(fileName + ".doc
Aspose.Words.dll
将word文档转换为PDF
这是我的密码
var fileName = System.AppDomain.CurrentDomain.BaseDirectory
+ Guid.NewGuid().ToString();
File.WriteAllBytes(fileName + ".docx", wordBytes);
var doc = new Aspose.Words.Document(fileName + ".docx");
doc.Save(fileName + ".pdf");
如果我运行上述代码,它将成功地将Word转换为PDF
但我的问题是我的word中有条形码字体,而PDF中没有显示。尽管有条形码,它还是会在PDF文档中显示字母
我的系统中安装了所有字体
我也试过像下面这样
var saveOptions = new PdfSaveOptions();
saveOptions.EmbedFullFonts = true;
doc.Save(fileName + ".pdf", saveOptions);
但什么也不会发生
有人能帮我解决这个问题吗?如果您在共享服务器下转换文档,那么很可能是安全问题。Aspose.Words for.NET DLL需要访问Windows注册表才能找到字体文件夹。有关更多详细信息,请参阅 解决方法还可以指定文件夹的路径,其中包含所有必需的字体。请参阅示例代码 如果您仍然面临问题,请在Aspose.Words论坛中随输入文档报告问题 我与Aspose合作,担任开发人员宣传员